Created
January 26, 2017 22:07
-
-
Save courtney-scripted/c426f9fb86b861241e0b6416ebe03b2f to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=c426f9fb86b861241e0b6416ebe03b2f
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>Randomly Choose a Student</h1> | |
<button id ="studentButton">Click Me!</button> | |
<div id ="studentDisplay"></div> | |
<p></p> | |
<h1>Randomly Choose a PM</h1> | |
<button id ="PMButton">Click Me!</button> | |
<div id ="PMDisplay"></div> | |
</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
{"enabledLibraries":["jquery"]} |
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 two variables that contain an array (one for your students and one for your PMs). | |
//Step 2 Write the code that, when you click the button, will randomly access a name from your student array and show it on your screen. | |
//Step 3 Write the code that, when you click the button, will randomly access a name from your PM array and show it on your screen. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment