views:

45

answers:

2

I've found some online interactive Javascript editors, but I wonder if there is a local equivalent as a gem that lets me test Javascript just like IRB and Rails console in Mac?

+2  A: 

Mozilla provides Rhino shell. Please note that it is based on an open source version of JavaScript built on Java.

Edit:

Since you are on a mac, you can use jsc which should be installed in: /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc.

Found this little gem of info on this page.

Brian
nice find! seems like exactly what the OP wants
SB
OP = Original Poster?
never_had_a_name
The problem is that I dont use TextMate=) But nice link though +1
never_had_a_name
@ajsie: Yep, see [Stack Overflow Glossary - Dictionary of Commonly-Used Terms](http://meta.stackoverflow.com/questions/40353/stack-overflow-glossary-dictionary-of-commonly-used-terms)
Marcel Korpel
@ajsie you don't need to use textmate. Just run it in the terminal as you would run irb.
Brian
+1  A: 

Try these: