You are viewing a single comment's thread. Return to all comments →
function vowelsAndConsonants(s) { let vowels = "aeiouAEIOU"; let consonants = []; for (let i of s){ if(vowels.includes(i)){ console.log(i); } else { consonants.push(i); } } consonants.map((i)=> console.log(i)); }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Loops
You are viewing a single comment's thread. Return to all comments →