JavaScript syntax errors occur when the structure of one of your JavaScript statements violates one or more of the syntactic rules.
msdn.microsoft.com