Help please


#1



I can't figure out what i'm doing wrong please help

https://www.codecademy.com/courses/javascript-beginner-en-XEDZA/0/5?curriculum_id=506324b3a7dffd00020bf661#

Oops, try again. It looks like your second 'for' loop isn't pushing values to the hits array. Make sure it's working properly and that myName's text appears somewhere in the text variable.


Replace this line with your code. 
/*jshint multistr:true */
var text = "Balls Boo Weiners Sacks Boo and nuts";
var myName = "Boo";
var hits = [];

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


#2

First of all with your

you don't need your full name or the full name you only need the first letter of you Var myName.

and at the j = i; j + you need a j < i +

and right here

you dont need that at all

Hope that helped