JavaScript second "for" loop


#1

can somebody tell me where's the error here please?

/*jshint multistr:true */
var text = "Hey my name is Hind ! it's a weird name right? Hind ! can you pronounce it? there! try! Hind !"
var myName = " Hind "
var hits = []
for ( var i=0 ; i=== text.length ; i++)
{
if ( text[i]=== myName[0])
{
for ( var j = i ; j < (i+ myName.length) ; j++)
{
hits.push('text[j]');
};

}

};


#2

Try removing the spaces:

" Hind " ---> "Hind"