Created
May 4, 2017 13:35
-
-
Save joseph45666/98e303745a771a2e161199bb68986b48 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=98e303745a771a2e161199bb68986b48
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> | |
<title>Page Title</title> | |
</head> | |
<body> | |
<!-- Put your page markup here --> | |
</body> | |
</html> |
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
var arrayOfStuff =[47, "hello", false, null, 12, 97, 800, "ScriptEd", "pencil", 2, 6876, 2016, 15, "Justin Beiber", "water bottle", "phone", 4.13, 76, 90, 81, "world", "sting", 65, 37, 82, "bye", "New York", "laptop", "A", "Z", 34, 809, 789, 43, 56, "T", "O", 25, "JavaScript", "notebook", 765764, 19873]; | |
//Challenge 1: Print the length of this array to the console. | |
console.log(arrayOfStuff.length); | |
Math.floor(Math.random() * | |
students.length)); | |
console.log(randomIndex); | |
console.log | |
//Challenge 2: Generate a random number between 0 and the amount of items in this array. Print this number to the console. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment