The system lagged and I cannot continue


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++){}


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


Your loop is not running correctly because of this,

should just be,


do not add


After correcting that your code should look like,

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



Thanks a lot! You solved my problem!


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