Why it doesn't work?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
14th Mar 2018, 10:31 AM
Sina
Sina - avatar
3 Answers
+ 2
@Sina Your code is correct but because of the huge range, it will take a long time to load and eventually freezes. Try to reduce the range to make it work. Or if you want you can use setInterval instead of loop so it won't freeze. Like this: https://code.sololearn.com/WA1mFTv97799/?ref=app
14th Mar 2018, 10:57 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 1
Thanks
14th Mar 2018, 3:42 PM
Sina
Sina - avatar
14th Mar 2018, 2:49 PM
Sina
Sina - avatar