Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

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.

Object Props

Kostas Diakogiannis
Module by Kostas Diakogiannis, updated more than 1 year ago
No tags specified