You are viewing a single comment's thread. Return to all comments →
For DRY believers:
function vowelsAndConsonants(s) { var consonants = ''; [...s].forEach(c => 'aeiou'.includes(c) ? console.log(c) : consonants += c + '\n'); console.log(consonants); }
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 →
For DRY believers: