Why Doesn't This Work?


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"

Why doesn't this work?

Who's in Your Bracket?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.