You are viewing a single comment's thread. Return to all comments →
I'm having a problem with my solution. When I put it to run it doesn't give any response. What am I doing wrong?
function vowelsAndConsonants(s) { let vowels = ['a', 'e', 'i', 'o','u']; for(let i=0; i<s.lenght; i++){ if(vowels.includes(s[i])) console.log(s[i]); } for(let i=0;i<s.lenght;i++){ if(!vowels.includes(s[i])) console.log(s[i]); } }
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 →
I'm having a problem with my solution. When I put it to run it doesn't give any response. What am I doing wrong?