#3 Stuck on for loop


#1



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


Syntax error: unexpected token )


Replace this line with your code. 

/*jshint multistr:true */

var text = "Ello, have a seat Quantum\
Technologys! My name is Fred.";

var myName = "Fred";

var hits = []

for(var i = 0; i < ); {
    
}


#2

Hi your for loop isn't finish.. and remove the ; after the for loop statement

for(var i = 0; i < ); <-- {
    
}

#3

I know my loop isn't finished, I don't know what to put there.

In place of "condition," put the condition that will stop the loop from running. In this case, our condition should be less than text.length. ???


#4

you already did that

for(var i = 0; i < ){
    
}

its missing the text.length then the increase of i

Example

var name = "Wizmarco"

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

}

did you see now how it should be ?


#5

Ok, got it, now if the save and submit tab would stop loading I could test it... :expressionless:


#6

I'ts maybe an infinit loop Does your code look like that ?

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

}

#7

It loaded, and no its not an infinite loop. Thanks.


#8

try to change browser..