Was coding in NetBeans just now and stumbled upon this error:
Uncaught SyntaxError: Unexpected token ILLEGALI'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 :)