Created
October 11, 2018 23:56
-
-
Save dannyrb/c883b9a74cc22f51d87d9489b42a35d9 to your computer and use it in GitHub Desktop.
Revisions
-
dannyrb created this gist
Oct 11, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ # HARRY FREAKIN' POTTER WORLD - Create a list of Harry Potter world attractions - Include information about each attraction - Minimum height to ride in inches (0 if there is no minimum) - A short description of the attraction - A URL to a picture of the attraction Using the above information, create the following functions: 1. `WhichAttractionsAmITallEnoughFor` - Should take a the rider's height in inches - Should write to the `console` the name of every ride the rider is tall enough to ride 2. `TellMeMoreAboutAttraction` - Should take a string argument - Should return the description of the attraction with the same name as the string - Should return "No Information" if there is no attraction with a matching name 3. `HomenumRevelio` - Takes no arguments - Returns a random Harry Potter World attraction image URL - See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random