"object.review"

Hello there,

I am a beginner and I’m taking the freeCodeCamp tutorial.
In the ES6 section “Prevent object mutation” I came across “object.review”. I tried to look it in google but didn’t find any info on this assignments.
What exactly “object.review” dose?

Thank you!

HI @milchob , welcome to the forum.

That’s simply accessing the object property with the dot notation.
If you see above: obj is defined having two keys:

"name"
"review"

So object.review was accessing whatever value was stored under that key.
Hope it helps :sparkles:

OMG… well… sorry for the stupid question… and thank you for the reply!

No question is “stupid”, and never be sorry for being curious :sparkles:

2 Likes

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