---
title: "Discussion on \"Nullish Coalescing and Optional Chaining\" | Hashnode"
description: "Discussion on \"Nullish Coalescing and Optional Chaining\". It talks about how we can handle a null or undefined scenario in JavaScript by using null coalescing and optional chaining."
url: "https://hashnode.com/posts/nullish-coalescing-and-optional-chaining/63f20c70748efa8ef86f9260"
---

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

Discussion

# [Nullish Coalescing and Optional Chaining](https://rajashreeparhi.hashnode.dev/nullish-coalescing-and-optional-chaining?utm_source=hashnode&utm_medium=feed)

It talks about how we can handle a null or undefined scenario in JavaScript by using null coalescing and optional chaining.

Feb 19, 2023 · 3 min read · rajashreeparhi.hashnode.dev  
Updated Feb 22, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#nullish-coalescing](https://hashnode.com/tag/nullish-coalescing)
-   [#optional-chaining](https://hashnode.com/tag/optional-chaining)
-   [#js](https://hashnode.com/tag/js)

## Written by

[Rajashree Parhi](https://hashnode.com/@rajashreeparhi)

@rajashreeparhi · India

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

I am a Software Engineer

I write what I learn along my coding journey!

## Responses 1

Markdown supported · ⌘↵ to post

[Aarush Sharma](https://hashnode.com/@aarush06)

[Feb 23, 2023](https://hashnode.com/posts/nullish-coalescing-and-optional-chaining/63f20c70748efa8ef86f9260/comment/63f73e48a4069fe3b3e9577c)

Makes sense, thanks for sharing.

[Rajashree Parhi](https://hashnode.com/@rajashreeparhi)

[Feb 23, 2023](https://hashnode.com/posts/nullish-coalescing-and-optional-chaining/63f20c70748efa8ef86f9260/comment/63f73e48a4069fe3b3e9577c#reply-63f7bf49207712e9dab0516f)

Thanks!
