4 Your if statement


#1



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

Getting problem with syntax error.


var text = "My name is Scott, what do you want me to say. Can we\ talk about something interesting and not about my name. I also\ know other people named Scott, but only a few.";

var myName = "Scott";

var hits = [];

for (var i =0;i<text.length;i++)
    {
        if (text[i]==="S")
            {
            }
        
        else
    }


#2

HI just remove the

else

#3

Got ahead of myself, thanks didn't think about that.