Created
March 8, 2017 21:56
-
-
Save courtney-scripted/e31da4b0da9c2c927e668cfe27b01b64 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=e31da4b0da9c2c927e668cfe27b01b64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> | |
<h1> Guess my number! </h1> | |
<input> | |
<button>Guess</button> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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