Javascript interpreter to replace Python


In terms of quick dynamically typed languages, I'm really starting to like Javascript, as I use it a lot for web projects, especially because it uses the same syntax as Actionscript (flash).

It would be an ideal language for shell scripting, making it easier to move code from the front and back end of a site, and less of the strange syntax of python.

Is there a good, javascript interpreter that is easy to install (I know there's one based on java, but that would mean installing all the java stuff to use),

Best Solution

I personally use SpiderMonkey, but here's an extensive list of ECMAScript shells

Example spidermonkey install and use on Ubuntu:

$ sudo apt-get install spidermonkey
$ js myfile.js
$ js
js> var f = function(){};
js> f();