You are viewing a single comment's thread. Return to all comments →
THIS IS MINE:
function vowelsAndConsonants(s) { const VOWLES = new Set(['a', 'e', 'i', 'o', 'u']); let sConsonants = ''; for (let char of s) { VOWLES.has(char) ? console.log(char) : sConsonants += char + '\n'; } console.log(sConsonants); }
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 →
THIS IS MINE: