Explanation of each process happening is in each process


#1

/*jshint multistr:true */
var text = "Top kHek. a ha This is very EASILY \
IDENDITIFABLE!!!!";
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++)
{
hits.push(myName);
};
};
console.log(hits);
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


#2

hmm. just realized that capitalization matters