You are viewing a single comment's thread. Return to all comments →
function vowelsAndConsonants(s) { [...s].forEach(c => 'aeiou'.includes(c) ? console.log(c) : null); [...s].forEach(c => 'aeiou'.includes(c) ? null : console.log(c)); }
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 →
The KISS beats DRY here: