Javascript - Accessing Properties (dot vs brackets)
📖 Read the lesson
Code Life
By Pierre Marsaa
Dot Notation
The most common way to read a property: the object, a dot, the key. You've already used it, here it is in full:
↗️
Loading editor...
↶
▶️ Run
↷
A property value behaves like any value: store it in a variable, add it, compare it.
↗️
Loading editor...
↶
▶️ Run
↷
Verify