Answer the question
In order to leave comments, you need to log in
How to fix "SyntaxError: Unexpected token {" error in Google Chrome?
Google Chrome throws a "SyntaxError: Unexpected token {" error while Mozilla Firefox is fine.
Short code example:
function Name( { x, y } ) { }
Answer the question
In order to leave comments, you need to log in
You are trying to use the syntax of the new js standard - es6 es6-features.org/#PropertyShorthand , and it is not yet supported by many browsers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question