The system lagged and I cannot continue


#1


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


The system lagged and stuck at that site every time when I pressed save & submit code for the code below. There is no any response when I pressed on any place on that site. I have to turn off the webpage in order to go back to the codecademy website again. It happened also on different computers. I cannot continue the exercise.


/*jshint multistr:true */
var text = "Hello I am Francis. Do you know about \
Francis? He is quite nice. Francis is a good guy.";
var myName = "Francis";
var hits = [];
for (var i = 0; i< text.length; i = i++){}


#2

It might be possible you have created an infinite loop in your code. I would check back over to make sure that is not the case. If not then maybe file a bug report in the platform problems section of the community


#3

Your loop is not running correctly because of this,

should just be,

i++

do not add

i=

After correcting that your code should look like,

for (var i = 0; i< text.length;i++){

}

#4

Thanks a lot! You solved my problem!


#5

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