Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 6, 2016 02:41
Show Gist options
  • Save codecademydev/d5260c51fb2ad4b984a5a05198dc27b9 to your computer and use it in GitHub Desktop.
Save codecademydev/d5260c51fb2ad4b984a5a05198dc27b9 to your computer and use it in GitHub Desktop.
Codecademy export
// Take a look at our next example object, a dog
var dog = {
species: "greyhound",
weight: 60,
age: 4
};
var species = dog["species"];
// fill in the code to save the weight and age using bracket notation
var weight = dog["weight"];
var age = dog["age"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment