Bit of a strange question here i know.
but i wanted to know if some kind of standalone engine for javascript exists..
basically i want to test running of my javascript without having to load a web page...
Maybe it doesn't exist? Like some kind of ide where i can run commands directly without launching IE etc...
I have a great editor but it doesn't support that.. i still need to launch ie / firefxo
What i was thinking of some kind of standalone javascript engine existed that i could write my code here and make debugging a bit easier... and then copy to my webpage.
I know firebug exists but you can't specifically do what i am asking cna you?
Any ideas?
Yes, to answer your question, it is possible to use JavaScript as a "regular" scripting language from the command line, without a browser.
You can run JavaScript console in terminal or any command-line interface using Node. js, an open-source, platform-agnostic runtime that executes JavaScript outside a web browser.
JavaScript goes native for iOS, Android, and Windows Phone apps.
A JavaScript engine is a software component that executes JavaScript code. The first JavaScript engines were mere interpreters, but all relevant modern engines use just-in-time compilation for improved performance. JavaScript engines are typically developed by web browser vendors, and every major browser has one.
Check out Rhino or Spidermonkey. You might want to grab an implementation of the ServerJS standard, like Narwhal while you're at it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With