A few days ago I installed Ubuntu on my computer and then WebStorm but I'm having an issue with JavaScript projects. It gave me an error saying that I cannot use the word "let". After a few hours, I found some solutions: by using "use strict". Is it possible NOT to "use strict"?
One more thing: it doesn't recognize me the faster alternative to Math.pow: (a ** 2);
Edit: I am using ECMAScript 6, this is the exact error: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
You may need to enable the ECMAScript 6 features in your WebStorm IDE. For this go to the Webstorm's
Preferences->Language & Features->Javascriptand here setJavascript Language Versionto ECMAScript 6