Home > Mobile >  How can we run JavaScript in VS Code itself
How can we run JavaScript in VS Code itself

Time:12-02

Can anyone tell me how can I run this JavaScript code in VS Code without node.js?

var a;
a = 0;
a  ;
alert(a);

CodePudding user response:

If you are not going to use NodeJS or a browser, you need a shell to run JavaScript. Here are a few:

  1. http://www.jsdb.org/
  2. http://javalikescript.free.fr/

CodePudding user response:

I assume you're a beginner. If you want to try basic JavaScript code try plunker. it's easy for beginners. simply type your code in the .js file and click preview.

var a;
a = 0;
a  ;
alert(a);

Click here for above code in plunker

Leave a comment if you need any assistant.

  • Related