Eternal for loop

Hi I need your help please.

I was doing Fibonacci challenge and I typed, just for fun, for loop condition to be something like:

for(i=1; i<1000000; i++) {
arr.push(arr[i] + arr[i-1]);
}

… so the page got frozen when i ran the code and whenever I try to enter the challenge again it tries to run the code and freezes again. I don’t have time to clear the code.

What should I do?

2 Likes