---
title: "Comment by Luiz Filipe da Silva on \"DOT NOTATION OR BRACKET NOTATION?\" | Hashnode"
description: "Straight to the point. Good explanation! PS: In your example, people[person[ name [firstName]]] should be people[ &#x27;person&#x27; ][ &#x27;name&#x27; ][ &#x2"
url: "https://hashnode.com/posts/dot-notation-or-bracket-notation/5f9031b4c626a0545fb602c6/comment/5f908b91c626a0545fb606d4"
---

[Discussion](https://hashnode.com/posts/dot-notation-or-bracket-notation/5f9031b4c626a0545fb602c6)

Comment [DOT NOTATION OR BRACKET NOTATION?](https://hashnode.com/posts/dot-notation-or-bracket-notation/5f9031b4c626a0545fb602c6)

[Luiz Filipe da Silva](https://hashnode.com/@luizfilipezs)

[Oct 21, 2020](https://hashnode.com/posts/dot-notation-or-bracket-notation/5f9031b4c626a0545fb602c6/comment/5f908b91c626a0545fb606d4)

Straight to the point. Good explanation!

PS: In your example,

```
people[person[name[firstName]]]
```

should be

```
people['person']['name']['firstName']
```

[Adeyemi Misturah](https://hashnode.com/@TuraCreativity)

[Oct 21, 2020](https://hashnode.com/posts/dot-notation-or-bracket-notation/5f9031b4c626a0545fb602c6/comment/5f908b91c626a0545fb606d4#reply-5f90ab41c626a0545fb6080e)

thank you so much for the correction
