You are viewing a single comment's thread. Return to all comments →
const strsplit = input.split("\n").slice(1); Day 6 lets Review in JavaScript
for(let str of strsplit){ let even = ""; let odd = ""; for(i=0; i<str.length; i++){ if(i% 2 ==0){ even+= str[i] }else{ odd+= str[i] } } console.log(``${even} $`{odd}`) }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 6: Let's Review
You are viewing a single comment's thread. Return to all comments →
const strsplit = input.split("\n").slice(1); Day 6 lets Review in JavaScript