Run JS Alternative: Create your own scratchpad for javascript

ยท

1 min read

I used to love RunJs when it was free for use ๐Ÿ˜Œ

But now, It is charging for even to write your code in RunJs, the creator implemented a timer which blocks you from writing any code for some time. ๐Ÿ˜ž

Luckily, VsCode has everything, even a lot more that it offers.


Why not use VsCode?

npm init -y
touch index.js
npm install nodemon

Let's add Debugger, cool ๐Ÿ˜Ž

  1. Click on the debugger icon on left
  2. Click on add launch.json
  3. Paste below setting
    {
    "version": "0.2.0",
    "configurations": [
     {
       "type": "node-terminal",
       "name": "Debug Mode",
       "request": "launch",
       "command": "npm start", 
       "cwd": "${workspaceFolder}"
     }
    ]
    }
    
    Done! bye bye RunJs.