-
-
Save codecademydev/7f158c828500249a43ac2c1871d27328 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