![Brave ad blocker](https://cdn2.cdnme.se/5447227/9-3/8_64e61dfb9606ee7f6adf5896.png)
![phpstorm javascript phpstorm javascript](https://i.stack.imgur.com/OqUzl.png)
![phpstorm javascript phpstorm javascript](https://resources.jetbrains.com/help/img/idea/2021.1/ws_js_libs_download_ts_definitions_intention_action.png)
Watch the video below to see clearly how it is done.
![phpstorm javascript phpstorm javascript](https://i.stack.imgur.com/3gOak.jpg)
If you want to test our code locally with Node (the console we are talking about), you need to add an extra line to call the function you just wrote with some sample input and then choose Run from the Right-Click menu.Ĥ.You may need to repeat this process for the current Settings as well.Go to > Default Settings > Languages & Frameworks > JavaScript and choose JavaScript language version to ECMAScript 6 > Select Prefer Strict mode (SEE THE PICTURE BELLOW!) WebStorm recently announced native support for standard directly in the IDE This applies to all JetBrains products, including PhpStorm, IntelliJ, RubyMine, etc. Setup the Default Settings for PHPbstorm, so that all projects start with them by default.Starting to write our code you can see that the "let" statement is marked as incorrect - this happens because you haven’t set up the Language Level of our project to EcmaScript 6 (EcmaScript 6 is the reason why you need NODE JS(and not only) for phpstrom).Create a new JavaScript file in which to write your code (TO TEST IT).Configure PHP storm IDE to work properly with NodeJS: (OPTIONAL) You will need to check node js version in cmd by typing node -v it will show you the ltest version of NODE JSģ. First you will need to install NodeJS in order to work properly with js files in PHP storm Download and install it on your PC from here: Ģ.
![Brave ad blocker](https://cdn2.cdnme.se/5447227/9-3/8_64e61dfb9606ee7f6adf5896.png)