title: JavaScript Coding Challenge help - Quiz Question Do While Loop
body: <p>I'm doing a coding challenge that requests we ask just one multiple choice question - if the answer is correct, it prints a congrats and exits the program. if wrong, it offers the user the chance to try again or exit the program. I've only been coding for a few weeks and it still simpler for me to use if/else if for this - but we need to use a Do While loop. Below is what i have so far and any advice would be appreciated:</p>
  <pre><code>let answer = [&quot;&quot;]
  do {
      prompt(&quot;What shape is the Earth? \nA: Square\nB: Triangle\nC: Round\nD: Flat&quot;);
  } while (answer != C);
      console.log(&quot;I'm sorry you're an idiot.&quot;)
      let retry = alert(&quot;Try again? Y/N&quot;)
  
  if (retry == Y) {
      //how to reset loop from here?
  }
  else if (retry == N) {
      //how to exit program? 
  }
  if(answer === C) {
      console.log(&quot;Congratulations! You're not an idiot :)&quot;)
  }
  </code></pre>