Very large while loop crashed the challenge forever

Very large while loop crashed the challenge forever
0

#1

So, I created a very large loop and it wouls print an extremely large array, and that crashed the page, that was stupid of me, but //noprotect infinite loops only crashed the page until I refreshed, and this one keeps freezing after 1 second even when I restart the browser, I can’t change the code or even reset my code, how do I fix this?
If it helps, it was on this challenge: https://www.freecodecamp.com/challenges/smallest-common-multiple


#4

You have created an infinite loop.
FCC uses an infinite loop protection, but it can’t catch every case.
The reason that your browser crashes every time you try to load the challenge is because the code in your editor automatically runs. Try disabling auto run.
Another option is to clear the challenge data from your browser cache.


#5

Adding //noprotect disables the infinent loop protection. In most cases it’ll freeze the tab or crash your browser. Most likely your code wasn’t written correctly and the loop never ends. There are very few cases in which you should use //noprotect.