You are viewing a single comment's thread. Return to all comments →
this is my solution:
let consonantes = []; for(let i = 0; i < s.length; i++) { if ("aeiou".includes(s[i])) { console.log(s[i]); } else { consonantes.push(s[i]); } } for (let j = 0; j < consonantes.length; j++) { console.log(consonantes[j]); } }
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 →
this is my solution: