How do I run some JavaScript code snippets

Tools for running JavaScript when testing or trying things

When I learn and try to use Javascript to make new attempts, I run some JavaScript code snippets every day.

Sometimes I just open Chrome or Firefoxdevelopment toolsWindow and enter content there. Trying a line or two is perfect, but if you have to spend some time on the code, it will quickly become a minor issue. For example, if you declare aconstValue, you need to refresh the window to rerun it.

Have a niceVS codeExtensionQuokka.js. This is a great way to test JS code snippets while working in the editor.

Another tool I use isRun JS, A littleelectronicapplication.

You can enter the code on the left, and the app will display the results on the right.

The code will be evaluated as you type, so you don't have to press the "Run" key or set obstacles when trying to operate.

It can test two browsers at the same timewith Node.jsCode.

You can import Node modules just by setting a working directory, and you can find them in that directory.node_modulesfolder. Or, you can just install the npm package from the "Operation -> Install NPM Package" menu.

It supportsTypescriptAnd Tongtian Tower.

It currently only works on macOS, but I'm sure there are similar tools for Linux and Windows.

Download mine for freeJavaScript beginner's manual


More js tutorials: