5/7 - no idea what's wrong... :(


#1

/*jshint multistr:true */
var text = "yalla \ go home moti \ shalom and thank you \ you are an inspiration for us all moti \ we will never forget moti \ and his love of black beans";
var myName = "moti";
var hits = [];
for (var i=0; i if (text.[i]==='m') {
for (var n=i; n<(i+myName.length); i++){
var hits = [];
hits.push(text[n]);
}
}
}


#2

Try this:
https://www.codecademy.com/forum_questions/549a358b51b887f3fe00a6f0
or this
https://www.codecademy.com/forum_questions/5495c25086f552a2020036cf