.push error


#1

/*jshint multistr:true */
var text = "Hey, how are you \ doing? My name is Roman"
var myName= "Roman"
var hits = []
for (var i = 0 ; i < text.length; i ++ )if (text[i]===myName[0]for (var i = 0; i < text.length; i++)
{
if (text[i] === 'R')
{
for (var j = i; j < i + (myName.length+i); j++)
{
hits.push(text[j])
}
}
};
//I am getting message:syntaxError:missing variable name. give me everything I am doing wrong please.


#2

@romanello
Don't forget your semicolon...

Don't repeat yourself, remove this on line 5: