Hello and welcome to Jurassic Park! You have been brought on to manage the dig sites for Dr. John Hammond. No expense has been spared, and the data on each mine is currently stored in the javascript objects below.
- Fork this repo.
- Clone the fork in your
wdi/homework
directory
Complete all 3 parts.
snakewaterMontana = {
paleontologist: "Dr. Alan Grant",
depth: "10 meters",
specimen: "Velociraptor"
}
-
Create a variable called guestOfHonor and assign it's value to the name of the paleontologist at Snakewater, Montana.
-
Access the value of the specimen found in Snakewater, Montana, and store it in a variable called cleverGirl.
nicaragua = {
depth: "200 meters",
annualBudget: 1500000,
specimens: [
"Tyrannosaurus Rex",
"Stegosaurous",
"Triceratops",
"Velociraptor"
]
}
-
Store the array of specimens of this site into a variable called nicaraguanSpecimens.
-
Make a variable called favoriteSpecimen and assign it's value to your favorite dinosaur within nicaraguanSpecimens.
-
Add 250000 to the annual budget of this site.
hammondsMines = {
buenosAires: {
depth: "400 meters",
annualBudget: 1000000,
specimens: [
"Dilophosaurus",
"Brachiosaurus"
]
},
mexico: {
depth: "350 meters",
annualBudget: 900000,
specimens: [
"Gallimimus",
"Parasaurolophus"
]
}
}
-
Access the depth of John Hammond's mine in Mexico.
-
Store the depth of the Mexican mine into an appropriately named variable.
-
Access the annual budget for Hammond's mine in Buenos Airies.
-
Store the annual budget for Hammond's mine in Buenos Aires into an appropriately named variable..
-
Access the dinosaur DNA specimens found in Buenos Aires.
-
Insert Nicaragua into hammondsMines
-
Create three variables to store the annual budgets for each mine into them.
-
Create a new reasonably named variable to track the total annual cost of operation for the mines by adding the previously stored budgets.
-
Access the "Parasaurolophus" specimen.
- Javascript Objects
- AirBnB style guide for writing your JavaScript.