Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
282 B
0
Indexable
Never
function findVowels(str){
    const vowels = 'aeiouAEIOU';
    let result = '';
    for(let i = 0; i<str.length; i++){
        if(vowels.includes(str[i])){
            result += str[i]
        }
    }
    return result.length
}

let str = "Javascript";
console.log(findVowels(str));
Leave a Comment