GoConqr has a new look! Let us know what you think.

Module 3 of 14 · Media

Object Props

Kostas Diakogiannis

Object Props

Accessing Object properties

As is shown above there are 2 ways to gain access to an object's property. The . (or dot way) and the [' '] (brackets way).

Bear in mind that there is no difference between the two methods. This is only syntactic sugar, although when accessing by brackets we need to put the wanted property inside quotes as a string.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?