Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 6, 2016 02:41
Show Gist options
  • Save codecademydev/d6dfe94d4d0cf7ff05170b667b121b2e to your computer and use it in GitHub Desktop.
Save codecademydev/d6dfe94d4d0cf7ff05170b667b121b2e to your computer and use it in GitHub Desktop.
Codecademy export
// Our bob object again, but made using a constructor this time
var bob = new Object();
bob.name = "Bob Smith";
bob.age = 30;
// Here is susan1, in literal notation
var susan1 = {
name: "Susan Jordan",
age: 24
};
// Make a new susan2 object, using a constructor instead
var susan2 = new Object();
susan2.name = "Susan Jordan";
susan2.age = 24;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment