Coder Social home page Coder Social logo

hw-w01d02-objects-and-arrays's Introduction

Digging for Dinosaurs with John Hammond

Introduction

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.

Setup

  • Fork this repo.
  • Clone the fork in your wdi/homework directory

Completion

Complete all 3 parts.

Part 1

snakewaterMontana = {
  paleontologist: "Dr. Alan Grant",
  depth: "10 meters",
  specimen: "Velociraptor"
}
  1. Create a variable called guestOfHonor and assign it's value to the name of the paleontologist at Snakewater, Montana.

  2. Access the value of the specimen found in Snakewater, Montana, and store it in a variable called cleverGirl.

Part 2

  nicaragua = {
    depth: "200 meters",
    annualBudget: 1500000,
    specimens: [
      "Tyrannosaurus Rex",
      "Stegosaurous",
      "Triceratops",
      "Velociraptor"
    ]
  }
  1. Store the array of specimens of this site into a variable called nicaraguanSpecimens.

  2. Make a variable called favoriteSpecimen and assign it's value to your favorite dinosaur within nicaraguanSpecimens.

  3. Add 250000 to the annual budget of this site.

Part 3

hammondsMines = {
  buenosAires: {
    depth: "400 meters",
    annualBudget: 1000000,
    specimens: [
      "Dilophosaurus",
      "Brachiosaurus"
    ]
  },
  mexico: {
    depth: "350 meters",
    annualBudget: 900000,
    specimens: [
      "Gallimimus",
      "Parasaurolophus"
    ]
  }
}
  1. Access the depth of John Hammond's mine in Mexico.

  2. Store the depth of the Mexican mine into an appropriately named variable.

  3. Access the annual budget for Hammond's mine in Buenos Airies.

  4. Store the annual budget for Hammond's mine in Buenos Aires into an appropriately named variable..

  5. Access the dinosaur DNA specimens found in Buenos Aires.

  6. Insert Nicaragua into hammondsMines

  7. Create three variables to store the annual budgets for each mine into them.

  8. Create a new reasonably named variable to track the total annual cost of operation for the mines by adding the previously stored budgets.

  9. Access the "Parasaurolophus" specimen.

Extra Resources

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.