-
-
Save codecademydev/d6dfe94d4d0cf7ff05170b667b121b2e to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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