Having issues with this part of the code


#1



im not sure where im messing up. i dont want the answer just a push in the right direction i know its in my second for statemen


/*jshint multistr:true */
var text = "hi im ahlwen, yep ahlwen."
var myName = "ahlwen"
var hits = []

for (n=0; n === text.length; n++){
    if (text[n] === "a");
        for(e=n; e < n+myName.length ;e++);
            myName.push(text[e])  
}


#2

Hey there, @ahlwen

In the second for loop, change myName.push() to hits.push(),

And you shall be good to go!


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.