javascript filter vowels 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, '' )