Run JavaScript Program On VS Code

JavaScript Input & Output

  1. Open terminal => npm install prompt-sync
  2. vs code setting => search 'run in terminal' => check the box
  3. "const prompt = require('prompt-sync')(); ->write this code before your main code

*# ctrl+shift+N => run program

ctrl+shift+M => stop program*

prompt-sync.png

npm_install.png