Who's in Your Bracket?


#1

Hola,people i have the problem with this i can't resolve :frowning: help me!!! pleaseeee
the error is it" Oops, try again. It looks like james' job was not logged to the console."

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

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

// print the value of the first property of "james"
// using the variable "aProperty"
console.log(james[aProperty]);
//I thought what you did, was what they asked for. But it's this actually.


#2

You are assigning the associated value, not the property name.


    var aProperty = 'job';

#3

var aProperty ='job';
it's correct?


#4

Did you try it?

console.log(james[aProperty]);

#5

yes i try see my code

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]);
//I thought what you did, was what they asked for. But it's this actually.


#6

omg jajajaja men the error i resolve with refresh the page and nothing more :frowning: jajajaja the usually bug


#7

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