6/7 Help!


#1

I have been through all the other 6/7 and mine still doesn't work. What am I missing? If it is a missing or misplaced ; I am going to die

var text = "My mother named me \ after Lauren Becall.";
var myName= "Lauren";
var hits = [];
for (var i = 0; i < text.length; i++){
if (text[i] ==='L') {
for (var j = i; j < (i + myName.length); j++) {
hits.push(text[j]); }
}
}
}

if  (hits.length === 0) {
    console.log("Your name wasn't found!");
}
else {
    console.log(hits);
}

#2

Never mind I found it....had an extra } :joy:


#3

I'M using you're code what is the thing that needs to be fixed?