Won't find name


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++){
if(hits.length === 0){
console.log("Your name wasn't found!");


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