1function disemvowel(str) {
2 var strArr = str.split('');
3 for (var x = 0; x < str.length; x++) {
4 var char = str[x].toLowerCase();
5 if (char == "a" || char == "e" || char == "i" || char == "o" || char == "u") {
6 strArr[x] = '';
7 }
8 }
9 return strArr.join('');
10}
11
1var strings = ["bongo drums", "guitar", "flute", "double bass",
2 "xylophone","piano"];
3string = strings.map(x=>x.replace( /[aeiou]/g, '' ));
4console.log(string);