You are viewing a single comment's thread. Return to all comments →
this is my solution:
function vowelsAndConsonants(s) { const voewls = s.match(/[aeiou]/g) const consonants = s.match(/[^aeiou]/g) voewls.forEach(char => console.log(char)) consonants.forEach(char => console.log(char)) }
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 my solution: