-
-
Save codecademydev/144d09dcfee8b3c03e6bc99d5cabafcc 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
var snoopy = new Object(); | |
snoopy.species = "beagle"; | |
snoopy.age = 10; | |
// save Snoopy's age and species into variables | |
// use dot notation for snoopy's species | |
var species = snoopy.species; | |
// use bracket notation for snoopy's age | |
var age = snoopy["age"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment