5. your second "for" loop


#1

WHAT IS ERROR IN THIS CODE?
var text = "Anup Anup";
var myName = "Anup";
var hits = [];
for(i = 0; i < text.length; i++){
if(text[i] === 'A'){
for(j = i; j < myName.length; j++){

 }

}
}


#2

Please, see this thread: your second “for” loop


#3

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