You are viewing a single comment's thread. Return to all comments →
for (let c=0; c<s.length;c++){ // console.log(s[c]) let cha = s[c] if (['a','e','i','o','u'].includes(cha)){ vowels.push(cha) } else{ con.push(cha) } } vowels.map(e=>console.log(e)) con.map(e=>console.log(e))
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 →