Accessing Object Properties with Dot Notation
Summary
- To access properties of an object, either dot notation (
.
) or bracket notation ([]
) can be used. - Dot notation is used when the name of ther property is known and does not uses psaces.
Final Code