one of the things I love most about Ruby is how easy it is to learn it. If I want to discover something new, I can have irb and ri open and just find new ways to do things easily.

I am finding that it's not as easy to do this in javascript.

I like being able to use the developer tools or Firebug as a REPL, but I'm not finding quick reference material for offline usage or for a slow connection.

So... is there anything for javascript, that is like Ruby's ri, so I can quickly learn. I'm not into always having to find a desk reference or wait 5 seconds while a w3schools.com page loads just so I can experiment with manipulating the DOM...


There is a comment below requesting an explanation of what irb and ri are. irb is an interactive ruby shell. ri is an interactive ruby reference you can call from the command prompt.

有帮助吗?

解决方案 2

After some time, I really have to recommend DocHub (https://github.com/rgarcia/dochub)

It's a node app that provides scrapes docs from the web and keeps them locally to make things speedy or let you use them offline.

其他提示

You're looking for node.

Type node in the terminal prompt and it'll do the javascript version of ruby's irb.

[~ :> node

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top