Javascript program is not working
<p>I am currently writing a simple program in Javascript. I can't figure out why the program will not work correctly. The user is supposed to be able to guess a number, and the program will tell the user if it needs to guess higher or lower. Right now, it doesn't even give me the first prompt. Thank you for all of the help.</p>

<pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;script&gt;
      //Guessing Game
      function guessingGame() {
        var userNumber = prompt("Pick a number 1 through 1000!", "Type your number here");
        var computerNumber = Math.floor(Math.random() * 1000 + 1);
        var tries = 0;
        var done = false;
        while (done === false) {
          if (userNumber &lt; computerNumber) {
            document.write("Your number was too low.");
            tries = tries + 1;
            userNumber = prompt("Please guess again", "Type your number here");
          } else if (userNumber &gt; computerNumber) {
            document.write("Your number was too high.");
            tries = tries + 1;
            userNumber = prompt("Please guess again", "Type your number here");
          } else {
            document.write("Great Job!!! You guessed the number in " + tries + " tries!" );
            done = true;
          }
        }
      }
      guessingGame();
    &lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>
