Intro to for loops


#1

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


#2

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


#3

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?


#4

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.


#5

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


#6

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.