Loop is giving additional value


#1

The code below passes but returns the following values:
[ 'K', 'r', 'i', 's', 'K', 'r', 'i', 'n', 'K', 'r', 'i', 's', 'K', 'r', 'i', 'n' ]

/*jshint multistr:true */

var text = "Kris Kringle is a name used in the United States and may\ refer to: Santa Claus, by assimilation in the United States of the\ separate German tradition below. Kris Kringle, the lead character in\ Miracle on 34th Street.";
var myName = "Kris";
var hits = [];

for (var i = 0; i <(text.length);i ++){
if (text[i] ==='K'){
for (var j = i; j < (i + myName.length); j ++)
{hits.push(text[j]);
}
}
};
console.log(hits);

Where is it getting the additional 'n'? (I know it's from Kringle but why is is showing it?)


#2

I am silly. This is expected behavior.... Obviously I need more coffee.