Intro to for loops


Every time I click save and submit, the website just freezes. Is this a problem for anyone else?


Sounds like you've build an infinite loop. Could provide your code pls?


Sorry, the webpage is kind of loading forever now. I don't think it is an infinite loop as it wouldn't just crash on me, right?


Well if it happens when you press submit then it might possibly be your code that causes the problem. Can't tell for sure cause I don't see it, but this happens quite often and often infinite loops are the problem.


The last time I did an infinite code, the code was just running forever, but it didn't crash the website. So?...


Depends on. Do you have or had a console.log in your loop? this can easily freeze your browser. Any way it would help if you could post the code.