Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

disemvowel 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;
}

console.log(disemvowel("This website is for losers LOL!"));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #disemvowel #javascript
ADD COMMENT
Topic
Name
2+2 =