4 ms·
Download a javascript engine that can be run from the command line like v8 or spidermonkey. This should do you: https://developer.mozilla.org/en/introduction_t
by xd 15y ago
Download a javascript engine that can be run from the command line like v8 or spidermonkey.
This should do you: https://developer.mozilla.org/en/introduction_to_the_javascript_shell https://developer.mozilla.org/en/introduction_to_the_javascr...
Edit: Spidermonkey and v8 are packaged up for pretty much any linux distro. Once installed the command to run spidermonkey is `js`, and `d8` for v8. Just add the name of the JS file you wish to run as the first argument.
- ColinWright 15y agoApparently not on my reasonably recent version of Ubuntu. I'll look at installing them. Thanks.
- xd 15y agoDownloading the source from github and compiling is easy enough. Either way, good luck and have fun!
- ColinWright 15y agoThis also works: colin@Rrrr:~$ js The program 'js' is currently not installed. You can install it by typing: sudo apt-get install rhino colin@Rrrr:~$ sudo apt-get install rhino (waits 10 seconds) Done. Thanks again.