Created
November 5, 2019 21:45
-
-
Save bnates/bc4b4e6fdfd539a618e981e1bee28e09 to your computer and use it in GitHub Desktop.
Brian Nations
This file contains 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> | |
<!-- this is where our title and dependencies go --> | |
<title>Class 1 Demo!</title> | |
<style> | |
li { | |
background: orange; | |
} | |
</style> | |
</head> | |
<body> | |
<h1 style="color: blue;">Cool Guessing Game App!</h1> | |
<ul> | |
<li>I like stuff</li> | |
<li>I like things</li> | |
</ul> | |
<script> | |
// capture user input and log it to the dev console | |
var user = prompt('what is your name?'); | |
console.log('the users name is ' + user); | |
// capture more user input and log it | |
var color = prompt('what is your fav color?'); | |
console.log('the users fav color is ' + color); | |
// send the user some output | |
alert('hi there, ' + user + '. Your fav color is ' + color); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment