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.