Won't find name


#1

It won't find my name and I don't understand why. It keeps telling me it can't find my name.

var text = ["LOL LOL LOL LOL jacob LOL LOL LOL LOL jacob LOL LOL LOL LOL LOL LOL jacob"];

var myName = "jacob";
var hits = [];

for(var i = 0; i < text.length; i++){
if(myName[0] === text[i]){
for (var j = i; j < myName.length + i; j++){
hits.push(text[j]);
}
}
}
if(hits.length === 0){
console.log("Your name wasn't found!");
}else{
console.log(hits);
}


#2

Your text is an array with a single element, a string. It should be just the string. Remove the square brackets.