title: How do I get console input in spidermonkey JavaScript?
body: <p>I'm currently using spidermonkey to run my JavaScript code. I'm wondering if there's a function to get input from the console similar to how Python does this:</p>
  <pre><code>var = raw_input()  
  </code></pre>
  <p>Or in C++:</p>
  <pre><code>std::cin &gt;&gt; var;
  </code></pre>
  <p>I've looked around and all I've found so far is how to get input from the browser using the <code>prompt()</code> and <code>confirm()</code> functions.</p>