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)

17th Jun 2018, 7:47 PM
George - avatar
2 Answers
+ 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)
17th Jun 2018, 8:31 PM
Andre Daniel
Andre Daniel - avatar
+ 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
17th Jun 2018, 8:06 PM
Sudarshan Rai
Sudarshan Rai - avatar