+ 1

I have a doubt jquery

Hello, I am wondering why this code doesn't work forever when I introduce while loop. Please, don't kill me, I am new. Thank for your attention https://code.sololearn.com/WeK05cEN36HL/?ref=app

6th Nov 2019, 7:22 PM
Zetra_coder
Zetra_coder - avatar
2 ответов
+ 1
JavaScript cannot handle infinite loops as it tries to do it all at once. Instead, use: setInterval(function() { // Your code });
6th Nov 2019, 7:26 PM
Daniel C
Daniel C - avatar
+ 1
Thank!!!
6th Nov 2019, 7:52 PM
Zetra_coder
Zetra_coder - avatar