Little assistance please. Not logging to console


#1

When I put my code in codepen is works perfectly fine and logs "programmer" to the console.

Here's the code:

var james = {
    job: "programmer",
    married: false
};
var aProperty = "job";
console.log(james[aProperty]);

Why isn't it passing in CodeAcademy?


#2

Is it because that specific lesson wants you to log both their "job" and "married status" to the console at the same time?


#3

Refresh the browser and submit again.


#4

Nah, there was an issue occuring with the browser, I basically had to close down the browser and rerun my solution i posted above and it worked.


#5

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