• + 0 comments

    function vowelsAndConsonants(s) { let vowels = ["a", "e", "i", "o", "u"]; var others = ''

    for(let v of s) {
        if(vowels.includes(v)){
            console.log(v);
        } else{
            others += v + "\n"
        }
    }
    console.log(others)
    

    }