Stuck with this chapter.. please help


var count = function(){
            console.log("the number is"+count);

everytime i run this code, the window immediately unresponding.. i can't save & submit this code.. so, i stuck here and can't continue to the next lesson.


You have an infinity loop. i is zero, and will stay zero, so:

while (i < 10)

is always true, causing an infinity loop


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