I cannot get this right...please help


#1



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

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


Difficulties with adding the text with the name
#2

@kimball9008yahoo.com what is your issue here ?
The code looks correct. However, it looks like you miss understood what you are trying to accomplish with code.
You have everything randomly in your code.
1. text should include name
2. myName should be equal to your name that is in text
3. your if statement should be equal to the first character of your name.

I am totally confused with your names here. Emily, Austin ? does it starts with C ?