Step 4: Your "if" statement


#1

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

I don,t understand clearly what should be done here.Should the "if" statement be written inside the "for" loop? Kindly tell me where I am going wrong.

Oops, try again.
There was a problem with your syntax.

SyntaxError: missing ) after for-loop control


for(var i = 0; i < text.length; i++ if(first letter === 'J'){
    continue coding;
    } {
}


#2

/*jshint multistr:true */
var text = "I know how to code.";
var myName = " John Jenny.";
var hits = [ ];
for(var i = 0; i < text.length; i++ if(first letter === 'J'){
continue coding;
} {
}


#3

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