Whats wrong wit this code?


/*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]);




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


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


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