Skip to content

Instantly share code, notes, and snippets.

View nsbingham's full-sized avatar

Nathan Bingham nsbingham

  • optional
  • United States
View GitHub Profile
@nsbingham
nsbingham / index.html
Created March 2, 2016 18:26
number-guessing-exercise
<p id="message">Guess a number between 1 and 10</p>
<form id="input">
<input type="text" name="number" id="guess">
<button id="submit">Submit</button>
</form>
<button id="replay" class="hidden">Replay</button>
# Number-guessing
- Write the `init` function to set up an event listener on the form. The event listener should pass the value of the input element to the `check` function.