Untitled
unknown
plain_text
a year ago
282 B
2
Indexable
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));
Editor is loading...
Leave a Comment