The other option for running Node.js code is to simply write JavaScript code into a file, and then compile basic arithmetic operators using node.js server.
Create a new project using "File" -> "New" -> "Project..." then select Empty Location. Name it “Nodeproject".
Now, New -> The app folder has scripts.
Add new JavaScript file Name -> Server.js -> OK.
Run a script file in Node.js from WebStorm.
Run Node.js from the command line and execute the file as in the following figure,
Arithmetic operators
There are the four basic arithmetic operators, as well as the modulus operator (%) which is used to obtain the division remainder.
The output Node Server is running as shown,
Run Node.js from the command line and execute the file as in the following figure,
GitHub