Can anyone tell me how can I run this JavaScript code in VS Code without node.js?
var a;
a = 0;
a++;
alert(a);
If you are not going to use NodeJS or a browser, you need a shell to run JavaScript. Here are a few:
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.