Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running javascript standalone engine?

Tags:

javascript

ide

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?

like image 853
mark smith Avatar asked Jul 02 '09 17:07

mark smith


People also ask

Can JavaScript run standalone?

Yes, to answer your question, it is possible to use JavaScript as a "regular" scripting language from the command line, without a browser.

Can you run JavaScript as standalone application without the 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.

Can JavaScript run natively on Windows?

JavaScript goes native for iOS, Android, and Windows Phone apps.

What is the use of JavaScript engine?

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.


1 Answers

Check out Rhino or Spidermonkey. You might want to grab an implementation of the ServerJS standard, like Narwhal while you're at it.

like image 143
Noah Medling Avatar answered Sep 27 '22 20:09

Noah Medling