#5 What's wrong?


#1

/*jshint multistr:true */
var text = "Hey, how are you \
doing? My name is Ana";

var myName = "Ana";

var hits = [];


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

#2

HI this part

for (var i = 0; i > text.length; i++)

i is equal to 0 and will never be great than text.length so you should put i less than text.length

Spoiler

i < text.length