Second "for" loop


I need some help with this section


Try putting a parenthesis around "i+myName.length" the computer only sees "j < i" and then it's throwing an error because it has no idea what " + " is doing out in the open.


It shows the same error.


Can you post your updated code for me?


Actually I got it. On my first "for" loop I was using i > text.length instead of i < text.length. Thanks for the help.


im also stucked here


post the code here
was dedbugging from morning


i got the solutions try this it works
/*jshint multistr:true */
var text="yateesh Hey, how are you \
doing? My name is yateesh.";
var myName ="yateesh"
var hits =[]
for(var i=0;i for(var j=i;j<(myName.length+i);j++){ if(myName[j]===text[j])




var text = "Hey kiran, how are you \
doing kiran? My name is kumar.";
var myName = "kiran";
var hits = [];
for (var i=0; i if(text[i]===myName[0]){
for (var j=i; j<(i+myName.length); j++){