Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

disemvowel trolls codewars javascript

function disemvowel(str) {
  var newStr = "",
        i;

    for (i = 0; i < str.length; i++) {
        if ("aeiou".includes(str[i].toLowerCase())) continue;
        newStr += str[i];
    }
    return newStr;
}
 
PREVIOUS NEXT
Tagged: #disemvowel #trolls #codewars #javascript
ADD COMMENT
Topic
Name
4+4 =