The browser crashes undre this page :(


#1

whenever i reached thos page and trying to send my answer the browser crashed, i tried chrome and firefox

https://www.codecademy.com/en/courses/javascript-beginner-en-NhsaT/0/5?curriculum_id=506324b3a7dffd00020bf661


#2

post your full code!

probable problem might exist at one or two of the part of for loop

for(firstPart; secondPart; thirdPart)

  1. Check if all the parts are separated by > ; (semi colon)
  2. Check code of three parts
    for (Here)

#3

Hi
I don't get any Error msgs but the browser stops responding and also for the following parts, i tried to pass over this part and jump up the the next one but still the browser freezing and stop responding


#4

Can you post your code?
or just snap the code and put here ?


#5

It happens exacly the same to me. The code is fine but the browser (in my case Google Chrome under Xubuntu) just stops responding so I have to close the tab. I also tried in Firefox and I got this error:

"A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete."

Script: https://production.cdmycdn.com…76f48cac825e0e5cd640bbf29a3.js:1

The code:

// Example for loop

for (var i = 8 ; i < 120; i =+ 12) {
console.log(i);
}


#6

Infinite loop,

for (var i = 8 ; i < 120; i =+ 12) {
console.log(i);
}

It should be..
i += 12

Can you see the difference ?


#7

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