title: Take user input with JavaScript in the console
body: <p>I need to get user input when running a <code>.js</code> in a console with spidermonkey like this:</p>
  
  <p><code>$ js myprogram.js</code></p>
  
  <p>What's the JavaScript equivalent of Ruby's <code>gets</code>?</p>