title: Why isn't this while statement not working in the catch block
body: <p>I have a simple a HTML document with a script tag, I'm messing around with a try catch and can't get the while statement in the catch block to work. The try and catch simply runs as if the while block isn't there.</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>try {
    let age = prompt("age?")
    if (age &lt;= 0 || age &gt;= 120) {
      throw new Error("Something Happened!")
    }
  } catch (e) {
    let state = true;
    while (state) {
      age = prompt("age?");
      if (age &gt; 0 || age &lt; 120) {
        state = false;
      }
    }
  }</code></pre>
  </div>
  </div>
  </p>