简体   繁体   中英

How can I run Javascript without a browser or node js?

I want to create a Javascript app but I want to do that only using Javascript. Because the node js is framework and I don't want to use any framework, can I create a Javascript app without a browser and without any framework?

Only using Javascript?

In order to run a javascript application, you need a javascript runtime, in the end you will have to install some, however, you can try something different like live-server from npm

Node js is actually not a framework or a library, but a runtime environment, based on Chrome's V8 JavaScript engine. I suggest you use it. Just install, type in console(powershell, bash, etc.): node file.js and I will run your app.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM