I don't understand what's wrong with my search code


#1

var text = ["basdhsbfbdjd, Terrell, udgbahbf, Terrell,\
sfuygsfdg, dgsuhagfbhb, ahsbjksb, sdajkfi, gfdhhhasb, fjidrne,\
Terrell, djfieni, dkjfioj, jsdfojf, fjdiotj, jfdi9aj";]
var myName = "Terrell"
var hits = [myName]
for(var i = 0; i < text.length; i++); {
if(text[i] === "T")
{
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

Hi try to put hits.length === 0 with "===" instead of one.