Can't finish "for loops" 4. and 5. Save and submit does no work


#1


Hi,

The save and submit-button does not work for me. I tried on a Chromebook and my desktop pc both with Chrome and Internet Explorer. The button does not work and the browser crashes.

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


Replace this line with your code.


#2

@hef81,
Please provide us with the FULL code you are using...


#3

// Edit this for loop

for (var i = 4; i = 23; i = i + 1) {
console.log(i);
}

This is the code i use.


#4

The loop you have written starts out with i having a value of 4, then you declare i has a value of 23, and in the last part i will run as i +1. Meaning the loop adds 23+1 until... FOREVER. You have created an infinite loop. This is why your browser crashes. Make sure to go over the instructions for parts 3 & 4 of the exercise.


#5

Ok, stupid mistake. Thanks for the help!


#6

anytime :slight_smile:


#7

I had this problem too. The save and submit button didn't work for me too. I tried on a pc with chrome. The button doesn't work and the browser crashed. What is the cause of the problem?


#8

@185016
Provide the FULL code you are using


#9

Most likely an infinite loop but as @leonhard.wettengmx.n already said, without your code we cannot help you.