5, your second "for" loop


Could somebody help me with this code ?


/*jshint multistr:true */
var text ="Joe";
var myName = "kantiphasto";
var hits = [];

for(var i = 0; i < text.length; i ++) {
if (text[i] === myName[0]){
for (var j=i; j<(myName.length+i);j++){




HI this line

var text ="Joe";

you should put at least once your name (the one you put in the variable myName) inside the variable text.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.