---
title: "Comment by Nate Sire on \"Javascript Tips and Tricks\" | Hashnode"
description: "Optional chaining is essentially the equivalent of null object pattern. It&#39;s one reason chaining is forbidden in OOP... Law of Demeter."
url: "https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/608e9ee6a3716542f3640349"
---

[Discussion](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a)

Comment [Javascript Tips and Tricks](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a)

[Nate Sire](https://hashnode.com/@natesire)

[May 2, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/608e9ee6a3716542f3640349)

Optional chaining is essentially the equivalent of null object pattern. It's one reason chaining is forbidden in OOP... Law of Demeter.
