title: Doing a while loop over guessing game
body: <p>I've run into something that I can't seem to figure out. I'm trying to make it loop, so when the user guesses the right info, it breaks the loop. But if they continue to get it wrong, it'll say "Wanna play again". Here's my code:</p>
  
  <pre><code>while (userResponse="yes") {        
  
              var value = 15;
              var guess = prompt('Please enter a number greater than zero.');
  
                  if (value == guess) {
                      alert ('The number you entered was correct. You won!');
                  }else if (guess == null){
                      alert ('You didn\'t enter anything!');                  
                  }else if ((guess &gt; value + 0)){
                      alert ('You\'re way off!');
                  }else if ((guess &lt;= value + 7) &amp;&amp; (guess &gt;= value - 7)){
                      alert ('You\'re getting warm!');
                  }else if ((guess &gt; value + 7)  || (guess &lt; value - 7)){
                      alert ('You\'re getting cold!');                
                  } else {
                      alert ('Something went wrong.');
                  }
                  userResponse = prompt("Would you like to play again?");
          }
  </code></pre>
  
  <p>any ideas on what it is that I'm doing wrong? All I want to do is when the user guesses "15" it dies automatically. </p>