• + 0 comments
    function vowelsAndConsonants(s) {
        for (let i = 0; i < s.length; i++) {
            if (s[i] == "a" || s[i] == "e" || s[i] == "i" || s[i] == "o" || s[i] == "u"){
                console.log(s[i])
            }
        }
        
         for (let i = 0; i < s.length; i++) {
            if (s[i] !== "a" && s[i] !== "e" && s[i] !== "i" && s[i] !== "o" && s[i] !== "u"){
                console.log(s[i])
            }
        }
    }