Skip to content

Instantly share code, notes, and snippets.

@courtney-scripted
Created March 8, 2017 21:56
Show Gist options
  • Save courtney-scripted/e31da4b0da9c2c927e668cfe27b01b64 to your computer and use it in GitHub Desktop.
Save courtney-scripted/e31da4b0da9c2c927e668cfe27b01b64 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=e31da4b0da9c2c927e668cfe27b01b64
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1> Guess my number! </h1>
<input>
<button>Guess</button>
</body>
</html>
// Step 1: Create click handler.
// Step 2: Create variable that takes the value of input
// Step 3: Write an if statement that checks whether the value is greater than a chosen number....
// Step 4: Write an if else statement...
// Step 5: Write an else statement...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment