how to remove all vowels from a string in js code example
Example 1: 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);
Example 2: remove vowels from string javascript
str = str.replace( /[aeiou]/ig, '' )