5.Who's in your baracket ? Some body please explain what the question actually demands


#1

var james = {
job: "programmer",
married: false
};

// set to the first property name of "james"
var aProperty =;

// print the value of the first property of "james"
// using the variable "aProperty"
console.log(aProperty);


#2

So in simplified terms, they want var aProperty to equal to the first property name of james so if we take a look back at our variable we will notice that job is the first property name.

Then they want us to use bracket notation to console log to the screen James's job.


#4

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