for loop into while loop
likeray (0)

help, cannot turn for loop into a while loop.

for works well, just need to make an equivalent while

You are viewing a single comment. View All
mwilki7 (520)

@likeray no problem
sometimes javascript does weird stuff without telling you like how 'i' isn't defined anywhere and it will still let you set it equal to stuff

this seems to be working from my end
https://repl.it/@mwilki7/equivalent-while-loop-needed
let me know if it doesn't work