-
-
Save codecademydev/fcd885f1848152d0761fc1c8c2de0aef 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 james = { | |
job: "programmer", | |
married: false | |
}; | |
// set to the first property name of "james" | |
var aProperty = "job"; | |
// print the value of the first property of "james" | |
// using the variable "aProperty" | |
console.log(james[aProperty]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment