title: Javascript- Console.log between multiple prompts
body: <p>Im pretty sure that a lot of people have encountered this situation.  For Ex: You have a simple Choose Your Own Adventure game from JS. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    var name = prompt("Name?");
      console.log("Hello" + name);
      var age = prompt("Age?");
      console.log(name + " is " + age + " years old");</code></pre>
  </div>
  </div>
  </p>
  
  <p>what happens is the first prompt is shown and then the second prompt (age) is shown immediately afterwards.  Also, the console doesn't even print out the "Hello" + (name) until after you answer the two prompts.  Is there anyway you can "force-print" the console.log between the two prompts?</p>