---
title: "Discussion on \"JavaScript optional chaining (?.) to the rescue\" | Hashnode"
description: "Discussion on \"JavaScript optional chaining (?.) to the rescue\". Optional chaining has been added to the ES2020 version of JavaScript and is also available in TypeScript.\nOptional chaining is a warmly welcomed way to access child properties, even when they don't exist!\nLet's sketch a simple user object.\nconst user..."
url: "https://hashnode.com/posts/javascript-optional-chaining-to-the-rescue/61234500e404793819cac0ba"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript optional chaining (?.) to the rescue](https://h.daily-dev-tips.com/javascript-optional-chaining-to-the-rescue?utm_source=hashnode&utm_medium=feed)

Optional chaining has been added to the ES2020 version of JavaScript and is also available in TypeScript. Optional chaining is a warmly welcomed way to access child properties, even when they don't exist! Let's sketch a simple user object. const user...

Aug 23, 2021 · 3 min read · h.daily-dev-tips.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#es6](https://hashnode.com/tag/es6)

## Written by

[Chris Bongers](https://hashnode.com/@dailydevtips)

@dailydevtips · Cape Town, SA

  
[View profile](https://hashnode.com/@dailydevtips)

Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.

## Responses 4

Markdown supported · ⌘↵ to post

[Chirag Dev](https://hashnode.com/@ChiragCodes)

[Aug 24, 2021](https://hashnode.com/posts/javascript-optional-chaining-to-the-rescue/61234500e404793819cac0ba/comment/61249034b115357df05f300a)

This is great. Never knew about this.

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Aug 24, 2021](https://hashnode.com/posts/javascript-optional-chaining-to-the-rescue/61234500e404793819cac0ba/comment/61249034b115357df05f300a#reply-61249e23663d427e19ff97f3)

Glad you learned something new Chirag ✨

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

[Aug 23, 2021](https://hashnode.com/posts/javascript-optional-chaining-to-the-rescue/61234500e404793819cac0ba/comment/61239a07b115357df05f1c5d)

Optional chaining operator is really useful. I use it in almost every project.

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Aug 24, 2021](https://hashnode.com/posts/javascript-optional-chaining-to-the-rescue/61234500e404793819cac0ba/comment/61239a07b115357df05f1c5d#reply-61249e14663d427e19ff97eb)

Awesome Yogesh, I'm a bit fan as well 🎉 Actually converted a lot of old codebase to ES6 just to use this 😅

[Dev By RayRay](https://hashnode.com/@devbyrayray)

[Aug 23, 2021](https://hashnode.com/posts/javascript-optional-chaining-to-the-rescue/61234500e404793819cac0ba/comment/61235f42b115357df05f1356)

I love this feature in JavaScript 😁

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Aug 23, 2021](https://hashnode.com/posts/javascript-optional-chaining-to-the-rescue/61234500e404793819cac0ba/comment/61235f42b115357df05f1356#reply-61238dd7663d427e19ff7e71)

Yeah such a blessing this is finally available 🎉

[Aiyush Gupta](https://hashnode.com/@Aiyush)

[Aug 23, 2021](https://hashnode.com/posts/javascript-optional-chaining-to-the-rescue/61234500e404793819cac0ba/comment/61235556b115357df05f11bc)

Awesome article 😎

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Aug 23, 2021](https://hashnode.com/posts/javascript-optional-chaining-to-the-rescue/61234500e404793819cac0ba/comment/61235556b115357df05f11bc#reply-61235cc4663d427e19ff77f7)

Glad you like it Aiyush 🎉
