DOT NOTATION OR BRACKET NOTATION?
NOTE : This article was written with the beginners in mind, and the examples are very easy to understand.
As most of us know, JavaScript provides two notations for accessing object properties. The first, and most common, is known as DOT NOTATION, Whi...
·3 min read·turacreativity.devRead the article
Luiz Filipe da Silva
Straight to the point. Good explanation!
PS: In your example,
people[person[name[firstName]]]should be
people['person']['name']['firstName']