CQM
CQM

Reputation: 44278

No errors on JSFIDDLE but errors on site and jslint

On Jsfiddle my code has no errors, see here http://jsfiddle.net/GyWpN/, Jsfiddle has built in JsLint and it says everything is fine.

On the development site though I get errors, as well as on jslint.com

In Chrome's developer tools I get Uncaught SyntaxError: Unexpected token ILLEGAL at the last line .attr("r", 3.5);​

and in Jslint.com I get Unexpected '​'. at the same last line .attr("r", 3.5);​

this doesn't make any sense to me, how do I get past this hurdle?

One difference worth noting is that on jsfiddle, it allows me to import the d3.v3.min.js file I need, I also import this on my development site, but jslint.com won't allow this kind of thing so I would expect it to have different errors. But this doesn't explain why the development site is having issues since it also uses the imported file.

Upvotes: 1

Views: 381

Answers (1)

VisioN
VisioN

Reputation: 145458

At the very end (on the last line) you have a Unicode Character 'ZERO WIDTH SPACE' (U+200B) which raises the error. In ANSI it looks like that (see line 44):

Upvotes: 4

Related Questions