Rocky Rocky - 5 days ago 8
Javascript Question

(()=>{})(); in PhpStorm parses as error in code

(()=>{})();
in PhpStorm(2016.2) parses as error in code.

Anybody knows any quick workaround?

Answer

Make sure that JavaScript Language Version is set to 'ECMAScript 6' in Settings(Preferences) | Languages & Frameworks | JavaScript

Comments