Who's in Your Bracket?


#1

When i run this 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 have this error :
Oops, try again. It looks like james' job was not logged to the console.

So confused ! can somebody help me ?


#2

Nothing wrong with this code...

Perhaps try closing the browser and going back to the exercise?
Alternatively, you could try using another browser for this exercise (works fine on Chrome for example).


#3

Thanks, i restart my browser
its works !


#4

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