Is there an easy way to evaluate JavaScript in WebStorm?

Is there a way to easily evaluate arbitrary JavaScript code in WebStorm for testing?

I am tired of jsFiddle.net. I basically want REPL in WebStorm, but where can I also format blocks of code.

+6
source share
1 answer

Well, you can get the REPL using the webstorm new Terminal function:

enter image description here

Press enter on "Open Terminal".

Once you are in the terminal, just enter node and then you will get REPL . This assumes you have nodejs installed.

However, if you want to use REPL for the Internet, I would suggest you use Google Chrome or Firefox REPL.

+10
source

Source: https://habr.com/ru/post/954319/


All Articles