Takes the vowels out of a string

PHOTO EMBED

Thu Feb 23 2023 16:43:47 GMT+0000 (Coordinated Universal Time)

Saved by @AlanaBF #javascript

function disemvowel(str) {
    const vowel = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'];
    let result = "";
  
  for (let i=0; i<str.length; i++)
    
    if (!vowel.includes (str[i])) {
      result += str[i]
    }
    return result;  
}
content_copyCOPY