Problem with 5


I have looked at this over and over and can't find the error. It says my second for loop isn't pushing values to the array. My code is:
var text = "Hello, my head hurts from javascript.";
var myName = "Mychelle";
var hits = [];

for (var i = 0; i < text.length; i++) {
if (text[i] === "M") {
for (var j = i; j < (i + myName.length); j++) {


I don't think you can even make this work, for there is no Mychelle in:

Anyways, you should try to refresh. It seems good...


OMG! Thanks! I've been looking at the code forever and it never occurred to me to put my name in the text!!!! :blush: