Skip to content

Instantly share code, notes, and snippets.

@dannyrb
Created October 11, 2018 23:56
Show Gist options
  • Save dannyrb/c883b9a74cc22f51d87d9489b42a35d9 to your computer and use it in GitHub Desktop.
Save dannyrb/c883b9a74cc22f51d87d9489b42a35d9 to your computer and use it in GitHub Desktop.

Revisions

  1. dannyrb created this gist Oct 11, 2018.
    23 changes: 23 additions & 0 deletions index.md
    Original 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