5/30

Can someone provide me a codes of 5/33 ? i didn’t get the intruction clearly

Hi,

what you are doing is setting the variable aProperty to “job” then printing James job using the brackets formula listed in the example, so it should look like this -

var aProperty = "job";

console.log(james[aProperty]);

Thanks

Keith

4 Likes

Those are exactly my codes! but i was wrong in putting the ) and ]

This code works only in Mozilla Firefox . :neutral_face:

This code works only in Mozilla Firefox . :neutral_face:

I use Google Chrome. Is this why the following code doesn't work for me?

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

var aProperty = “job”;

console.log(james[aProperty]);

I literally have that same code. Try refreshing the page and submitting. It worked for me.

3 Likes

work for me in chrome also

Thanks for code :smile:

Try to disable Adblock.

2 Likes

It totally correct in my case. I did refresh the Chrome browser and it runs well

I tried in Google Chrome. Now it’s working fine. I think they fixed the issue.

Disabling AdBlock worked for me in Chrome. +1 @returntrip