Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 6, 2016 02:42
Show Gist options
  • Save codecademydev/ad44982713b7ce581b679580f8abed00 to your computer and use it in GitHub Desktop.
Save codecademydev/ad44982713b7ce581b679580f8abed00 to your computer and use it in GitHub Desktop.
Codecademy export
// help us make snoopy using literal notation
// Remember snoopy is a "beagle" and is 10 years old.
var snoopy = {
species: "beagle",
age: 10
};
// help make buddy using constructor notation
// buddy is a "golden retriever" and is 5 years old
var buddy = new Object()
buddy.species = "golden retriever";
buddy.age = 5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment