5 your second "for" loop



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]);}


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.


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