5/7 plz help


#1

var text = "faizan is boss"
var myName = "faizan"
var hits = []
for (var i = 0; i < text.length; i++)
if (text[i] === "f")
{
for (var j = i; j < (myName.length+i;j++)
{
hits.push(text[j]);
}
}

why this no work


#3

You forgot the closing ")" after "...+i" in the second "for" loop...


#4

You did not open curly brackets after the first for loop


#5

== means compare values
=== means compare values and types

So this should not be the problem