0
Stuck
I was making a really cool code when I was writing an infinite loop. The first code I wrote in that loop was an alert. I tested the code, and when I got to the loop it alerted the alert box, but as soon as I pressed OK, it popped right back up again so I didn’t have a chance to save it - or do anything so I had to restart the app; deleting my code. Also, I published a code that does this so you can see what it’s like! (JavaScript)
2 Réponses
+ 1
It popped up again because you made the loop infinite. Learn two lessons from this:
-Always save your code before running, to avoid errors like this.
(If you are on website, copy your code to clipboard before saving, in case the save times out and is stuck saving forever and you lose all your progress)
-Never put an infinite loop on an alert (or web disturbance of the sort)
+ 1
welcome to forum George , you should check this thread for better understanding of Q&A section
https://www.sololearn.com/discuss/1316935/?ref=app