for Thinkful's Front End Web Development Hot or Cold Project
when Guess button is clicked{
- check that input is a number between 1, 100
- check that input hasn't already been guessed
- counter +1
- set variable guess from the input text var guess = input.val()
- insert guess into html
- guess
- append guess html to ul#guessList
- calculate "hot" or "cold" feedback var feedback = function(secretNumber, guess){ var diff = abs(guess - secretNumber); if (diff<5){ return "very hot"; } }
- put feedback() answer into div#feedback }