📜  disemvowel javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:03.630000             🧑  作者: Mango

代码示例1
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!"));