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


/*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++) {

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


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


thenk you so mutch that was it


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