Explanation of each process happening is in each process


/*jshint multistr:true */
var text = "Top kHek. a ha This is very EASILY \
var myName = "Harlan";
var hits = []

for ( var i = 0 ; i < text.length; i++);
/* this scans through the text letter by letter*/
if (text[i] === myName[0])
/* If the above for loop finds the first letter in my name, it execs the following command*/
for (var j = i ; j < i + myName.length ; j++)
console.log(hits.length) ;

Hello, all. I need an explanation as to what the second for loop is actually doing in the code, i.e, it's purpose. I keep having errors, and would like to figure them out myself, and i feel like understanding the second loop is integral


hmm. just realized that capitalization matters