The dot notation works almost everywhere, but there are some situations in which we can not use it. For example, using the dot operator in the code given below will result in an error:
Now, to access the value of this property, we need a different notation: the bracket notation.
In the example given below,
we are using the bracket notation,
to read the value stored in the