Answers for "remove vowel from a string in JS"

0

remove vowels from string javascript

var strings = ["bongo drums", "guitar", "flute", "double bass",
               "xylophone","piano"];
string = strings.map(x=>x.replace( /[aeiou]/g, '' ));
console.log(string);
Posted by: Guest on May-06-2020
0

remove letter until vowel javascript

const words = ['Art', 'Cheat', 'Cart', 'Jog', 'Fun', 'eat', 'Beat', 'meat', 'Run', 'Smart', 'cat', 'blog'];
const regex = /^[^aeiou]+(?=[aeiou])/gi; // NOTICE THE i FLAG HERE

for(i = 0; i < words.length; i++)
  console.log(words[i] + ' > ' + words[i].replace(regex, ''));
Posted by: Guest on December-10-2020

Code answers related to "remove vowel from a string in JS"

Code answers related to "Javascript"

Browse Popular Code Answers by Language