5 your second "for" loop


#1


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


The system accept my code but it doesn't write any name. just the number 80.


/*jshint multistr:true */
var text = ( "hello how are you jerome, have you jerome been working hard or not really jerome")
var myName = "jerome"
var hits = []
for (var i=0; i< text.length; i++) {
if (text[i]==="j"); {
    for (var j = i; j < (i + myName.length); j++); { hits.push (text [i]);}
}
}


#2

printing the name is what you will work on in the exercise

The exercises are broken down in steps, if we would throw everything at you at once, that would be a bit confusing.


#3

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