No visible cause for “Unexpected token ILLEGAL”

I’m getting this JavaScript error on my console:

Uncaught SyntaxError: Unexpected token ILLEGAL

This is my code:

var foo = 'bar';​

It’s super simple, as you can see. How could it be causing a syntax error?

11 Answers
11

Leave a Comment