[英]How can we run JavaScript in VS Code itself
Can anyone tell me how can I run this JavaScript code in VS Code without node.js?谁能告诉我如何在没有 node.js 的 VS 代码中运行这个 JavaScript 代码?
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.如果您不打算使用 NodeJS 或浏览器,则需要 shell 来运行 JavaScript。 Here are a few:
这里有几个:
I assume you're a beginner.我假设你是初学者。 If you want to try basic JavaScript code try plunker.
如果您想尝试基本的 JavaScript 代码,请尝试 plunker。 it's easy for beginners.
这对初学者来说很容易。 simply type your code in the.js file and click preview.
只需在 .js 文件中键入您的代码,然后单击预览。
var a;
a = 0;
a++;
alert(a);
Click here for above code in plunker 点击此处查看 plunker 中的上述代码
Leave a comment if you need any assistant.如果您需要任何助手,请发表评论。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.