Whats wrong?


#1

var text = "Hey, Rajat how are you Rajat doing? My name is Emily Rajat.";
var myName="Rajat";
var hits = [];

for(var i = 0;i if(text[i]==="Rajat"){
for(j=i;j }
}
}


#2

Please read here how a for statement should look like.

For statement

Than control your for statement.

If you again stuck please tell me which lesson/part