PhpStorm - JavaScript function parameter IDE error

前端 未结 2 1683
不知归路
不知归路 2021-01-17 17:08

I am trying to build a reusable JavaScript function that makes use of default parameters. However, the IDE warns me I do something wrong.

<

相关标签:
2条回答
  • 2021-01-17 17:58

    You can switch the version here:

    1. Press CTRL+ALT+S

    2 Search for JavaScript & click the select field. and then select ECMAScript 6

    0 讨论(0)
  • 2021-01-17 18:12

    In Preferences->Languages & Frameworks->JavaScript, select "ECMAScript 6" from the language version menu to be able to use the new syntax features of ES6.

    0 讨论(0)
提交回复
热议问题