What's wrong?


#1



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

Oops, try again. There was a problem with your syntax.
Syntax Error: Unexpected token

/*jshint multistr:true */
var text = "Hi hi hi hi Judy Hopps and Nick Wilde / are bae and so are Lea and L.A / but here's the best of me / my name is Sydney.";
var myName = "Sydney";
var hits = [];
for(var i = 0; i > text.length; i++){
    //Do something!
}
if (text[i] === 'S') {
    for(var j = i; i + myName.length; a++;);
     console.log(hits.push(text[j]));
}


#2

The above should be inside the loop where it says, "do something!".

should be, j < i + myName.length;

should be, j++ with no semi-colon.

should have an opening brace at the end, and not a semi-colon. Be sure to add a closing brace for this loop, as well.

should be, i < text.length;


#3

I edited and I got the same error message.


#4

Does your code now look like this...

    for (var j = i; j < i + myName.length; j++) {
        // code
    }

?