828 clicks in this exercice ! Wahoo!


#1

What's wrong here please ?

var text= "Hi how are you Sam ? ";
var myName="Sam";
var hits=[];

for (var i=0;i

if (text[0] === "s") {
for (j = i; j < (myName.length + i); j++) {
hits.push(text[j]);
}
}
}