Help! I have no idea why i'm getting a error message


#1


 
/*jshint multistr:true */
var text = "hello my name is Tony how are you, i really like to program in Javascript, it is the best object orented thing in the univarse "
var myName = "Tony"
var hits=[];
for (var i = 0; i < text.length; i++) {
if (text[i] === myName[0]) {
for (var j = i; j < (i + myName.length); j++) {
hits.push(text[j]);
}
}


help me i have no idea why i am getting this error message

SyntaxError: Unexpected end of input

I dont see what is wrong with it help me


#2

There are three opening braces and only two closing. That what has raised the error.


#3

thenk you so mutch that was it


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.