• + 0 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))
    }