Skip to content

Instantly share code, notes, and snippets.

@courtney-scripted
Created January 26, 2017 22:07
Show Gist options
  • Save courtney-scripted/c426f9fb86b861241e0b6416ebe03b2f to your computer and use it in GitHub Desktop.
Save courtney-scripted/c426f9fb86b861241e0b6416ebe03b2f to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=c426f9fb86b861241e0b6416ebe03b2f
<!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>
{"enabledLibraries":["jquery"]}
//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