Your second for loop


#1

/*jshint multistr:true */
var text = " hey there Memo ,\
memo is here.";
var myName = "Memo";
var hits = [];

for(var i = 0; i < text.length; i++) {

if ( text[i] === "M" ) {}

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

hits.push(text[j]);
}
}
}

//can anyone tell me whats wrong with this//


#2

Suggest start over from scratch, following the instructions closely and referring to Lesson 1 for an example. This time write the code. Pasting can be so messy...


#3

you just need to delete the () between myName.length + i