---
title: "Moshood Sikiru (@ayolan) | Hashnode"
description: "Moshood Sikiru (@ayolan) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@ayolan"
---

@ayolan

# Moshood Sikiru

@ayolan · Joined August 2021

## Comments

[This would still throw cannot read property color of undefined if yourObjectName does not exist: if (yourObjectName.color && yourObjectName.color === 'blue') { return 'Blue is cool'; } Perhaps you meant: if (yourObjectName && yourObjectName.color === 'blue') { return 'Blue is cool'; }](https://hashnode.com/posts/how-to-use-the-javascript-optional-chaining-operator/611698a81667fc4aab5dd09b/comment/61169d9916b6034ad04b0530)

Comment · Article · Aug 13, 2021 · [How to use the Javascript Optional Chaining operator (?.)](https://hashnode.com/posts/how-to-use-the-javascript-optional-chaining-operator/611698a81667fc4aab5dd09b)
