title: Javascript Console Application?
body: <p>Is it possible to make a console based application in JS?<Br>
  This sort of all I can achieve right now.
  I was hoping for a in-browser console based application rather than a popup prompt :P</p>
  
  <pre><code>var fname=prompt("Command:","")
  if (fname=="do_stuff") {alert("Ok, i will do stuff...")}
  else {alert("You did not tell me something i know!")}; 
  </code></pre>
  
  <p><br>In the Javascript Program I have composed above: there is first a <code>prompt</code> box then there
  is an <code>if</code> statement to check if the user entered "do_stuff" if he does not..("<code>else</code>") then it will display an alert box: You did not tell me something I know!</p>