4/7: Help


#1

/*jshint multistr:true */
var text = "Veronica is awesome. If I could be friends with \ anybody, it would be Veronica."
var myName = "Veronica"
var hits = []
for (var i = 0; i < text.length; i++){
if (text[i] === 'V'){

}

SyntaxError: Unexpected end of input


#2

You need to put a } to end your if function so that your code reads:

/*jshint multistr:true */

var text = "Veronica is awesome. If I could be friends with \ anybody, it would be Veronica."
var myName = "Veronica"
var hits = []
for (var i = 0; i < text.length; i++){
if (text[i] === 'V'){

}
}


#3

oh my god.. are you serious. THAT'S ALL I HAD TO DO?!

hahah thank you!!


#4

I had the same issue but now I know what i had to do Wow THANKS MAN :grinning: