I initiated a JavaScript/jQuery click listener like this:
$("#test").on("click", () => {
console.log("test");
});
This piece of code works perfectly fine in Firefox but in Chrome this seems to give me a Syntax error. Why is this, since this looks like 'ok' syntax to me.
You can test this quickly in the console by doing
var a = () => {return 0;}
a();
In Firefox 27.0.1 this returns 0
In Chrome it returns SyntaxError: Unexpected token )