Oops, try again: looks like james'job was not logged to the console


#1

<Here is my code produces the subject error. Node.js console produces no error for the same code.

Errors produced by site don't tell the exact reasons as to why the error is produced. Which is quite frustrating and wasting time of a new comer to this site. Hope developers understand that the user here are new and in learning phase and so they can't proof read the code like an expert programmer. Device to produce the error messages to pin point the exact cause of error in code to help users instead of frustating them by giging such round about errors mesages.

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]);

Await expert comments....


#2

Hmm everything looks okay...

Would you mind taking a screenshot of the error for us? That'd be much appreciated.

Also, there is a new JavaScript course that is almost done and ready to be released. And from what I could tell it's shaping up to be a much improved version of the current course.


#3

Had the same issue, searched the rest of the forum and found this:

Refreshed my page and it worked.


#4

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