5. Your second "for" loop NEED HELP!


#1


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


I get an errot that says SyntaxError: Expected ';' but what have I done wrong


Replace this line with your code. 

/*jshint multistr:true */

var text = "JDSJDSHJSDHB Kebron jhjdhjdhs Kebron ksdjsalkdnd Kebron";
var myName= "Kebron";
var hits = [];

for ( i = 0; i < text.length; i++){  
if(text[i]==='K'){
    
    for(Var j =i; j < i + myName.length; j++){
        hits.push(text[j]);
    
    };
};
    
}
console.log(hits);


#2

keyword are case sensitive, in your second for loop change Var to var


#3

Thanks it worked

........................................


#4