I Press "Save & Submit," It Tells Me to Start Next Lesson, But Logs the Wrong Thing


#1


That's a screenshot of my predicament. I'm fairly certain it's not supposed to log "undefined." If someone could tell me what I did wrong, that'd be great.


#2

@panopticaaron,
In your 2nd FOR-loop you will have to change your condition

j<i+myName.length

and
remove the ELSE statement structure....!!!

On code-line 15
you could use a
console.log( hits )