What's wrong?



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++;);


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;


I edited and I got the same error message.


Does your code now look like this...

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