All Things Techie With Huge, Unstructured, Intuitive Leaps

Javascript: Uncaught SyntaxError: Unexpected token ILLEGAL


Notes to self: If you get this error on your javascript console:

"Uncaught SyntaxError: Unexpected token ILLEGAL"

The first thing to try, is that if you are passing a string as a parameter, put it single quotes.

This drained me for an hour.

No comments:

Post a Comment

Post a Comment