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