OOM (out of memory) error in 5/7


I have gone though my code several dozen times. I have fixed the [] code error, but now it is throwing an out of memory error as if I have an infinite loop (I might a I'm still new to this). I have gone back to step one and re done it from scratch and still end up here. Any help would be appreciated.

/*jshint multistr:true */

var text = "bjork bjork, Chris, bjork bjork bjork Chris! Chris bjork Chris";
var myName = "Chris";
var hits = []
for(var i=0; i < text.length; i++){
if (text[i] === "C") {
for(var j = i; j < myName.length + i; i++) {


I'm still pretty new to this, too but I think the problem could be in your second for loop where in the increment part you have i instead of j. Try changing it so you'll get "for(var j = i; j < myName.length + i; j++) {


Thank you, Yes that fixed it!