Making an infinite loop crashes the whole page

I was trying stuff out and due to a typo I made an infinite loop in
“Iterate with JavaScript While Loops”

it crashes the whole page, even without running the test.

I don’t know if this is a bug or normal behaviour so I haven’t filed it as a bug.
Can someone from freecodecamp tell me if I should report this.

greets,
stef

you cancel infinite loops by pressing ctrl+c

1 Like

that’s not why I put this on here. I asked if it’s normal behaviour for the page to freeze.
But thanks for the response, I didn’t know that.

1 Like

It is normal that bad code can freeze a browser, yes.

1 Like

It doesn’t really matter as I tried it for a third time and now it doesn’t freeze but gives the warning instead. Seems like it was a temporary problem.
Freezing the browser can be normal for wrong code but that shouldn’t be happening in this testing environment. (and seems it doesn’t anymore now)

Thank you for your responses

greets,
stef

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.