title: How can I pause JavaScript until input, like a confirm/alert box?
body: <p>I have a game, and at certain points I need to prompt the user.</p>
  
  <p>For one question, it's simple. I place an overlay over everything else, and have a yes and no button. I change the actions of the buttons depending on the question, but in some cases I need to ask 2 or 3 questions. By using <code>confirm()</code> I could just put this in a for loop, but at the moment it will just change the questions and answers.</p>
  
  <p>I was thinking to set a variable like <code>numberOfQs = 3</code> and then <code>currentQ = 1</code> and after the yes/no button is clicked I increment and call a <code>question</code> function until <code>currentQ === numberOfQs</code></p>
  
  <p>Is that the best/only option? I don't want to use <code>confirm()</code> or <code>prompt()</code> because I can't style it.</p>
  
  <p>No JS library answers please.</p>