You are viewing a single comment's thread. Return to all comments →
function vowelsAndConsonants(s) { for (let i = 0; i < s.length; i++) { if (s[i] == "a" || s[i] == "e" || s[i] == "i" || s[i] == "o" || s[i] == "u"){ console.log(s[i]) } } for (let i = 0; i < s.length; i++) { if (s[i] !== "a" && s[i] !== "e" && s[i] !== "i" && s[i] !== "o" && s[i] !== "u"){ console.log(s[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 →