Uncaught SyntaxError: Unexpected token ILLEGAL


Was coding in NetBeans just now and stumbled upon this error:
Uncaught SyntaxError: Unexpected token ILLEGAL 
I'm very sure there is no syntax error on that line. But chrome just wouldn't stop complaining about it.
After debugging for a while, I realize its the extra unidentified character (space/eol) that is causing the error.


Deleting that solves the problem :)

Comments

Post a Comment

Popular posts from this blog

[Azure Websites PHP] Cross Domain request results in blank response page after Preflight HTTP OPTIONS

[Magento] Create Contact Form with Dynamic Recipient