Whats wrong wit this code?


#1

/*jshint multistr:true */
var text= "Hey, how are you deme\ doing? My name is deme.";
var myName="deme";
var hits=[];

for (var i=0; i>text.length; i++){
if (text[i] === 'd'){
for( var j=i; j hits.push(text[j]);

   }

}
}


#2

Hi bytepro63682,
What are you trying to make this code do?


#3

i think i was trying to find my name in this one...thanks so much i done it


#4

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