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