Saturday, November 5, 2011

Installing Rhino (Javascript shell) on Ubuntu (11.04)

I installed Rhino (Javascript Shell) so that I can test some javascripts interactively just like irb for Ruby.

1. Resource(s)
Mozilla Rhino Project: http://www.mozilla.org/rhino/
Rhino Debugger: http://manpages.ubuntu.com/manpages/natty/man1/rhino-debugger.1.html

2. Installation
Search and install "Rhino" from Ubuntu Software Center.

3. Test
$ js
Rhino 1.7 release 2 2010 11 17
js> "hello".length
5
js> quit()
$ 

3 comments:

  1. So, this is great but how do I enter the debugger?

    ReplyDelete
  2. I found the answer! http://manpages.ubuntu.com/manpages/natty/man1/rhino-debugger.1.html

    ReplyDelete
  3. Thanks, Anonymous.

    I've added the link to the resource(s).

    ReplyDelete