Your second "for" loop


#1

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

for(var a = 0; a < text.length; a++){
if (text[a] == "C"){
for( var b = a; b < (myName.length + a ); b++){
hits.push(text[b]);
}
}
}


#2

nvm, fixed
.
.
.
.
.
.
.