Browser Crashing every time


#1

EDIT: Ok, not only am I dumb, but I'm stupidly blind. I didn't change the j when adding the value.

Here is my code:

/*jshint multistr:true */
var text = "Hey how are you \
doing? My name is Kong.";
var myName = "Kong"
var hits = []

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

Sorry, have no clue how to put it in code format, since I couldn't find a thread explaining how.
But, so far, this is what I have, and it keeps on crashing on me. And, considering, i'm dumber than a bag of bricks, the so called "hint", was no help. A FULL walkthrough would be MUCH appreciated.


#2

mark it as solved to prevent people from thinking there is still a problem


#3