Utilizor
Contact Us

Accessing Properties

Reading object properties.

Accessing Properties

You can access object properties in two ways:

Dot Notation

objectName.propertyName

Bracket Notation

objectName["propertyName"]

Example

person.lastName;
person["lastName"];