title: "prompt not defined" using node from command line?
body: <p>I'm trying to run a simple javascript program from the command line and am getting an unexpected error. prompt seems to be a simple javascript command; not sure why it's not defined.</p>
  
  <p>my test.js file:</p>
  
  <pre><code>console.log("I will now ask you for your name.");
  var name = prompt("Enter your name");
  console.log("Hello ".concat(name, ". How are you"));
  </code></pre>
  
  <p>I'm running it like this:</p>
  
  <pre><code>C:\directory\node test.js
  I will now ask you for your name.
  
  C:\directory\test.js:2
  var name = prompt("Enter your name");
  
  Reference Error: prompt is not defined
  </code></pre>