---
title: "Discussion on \"Nullish coalescing operator (??)\" | Hashnode"
description: "Discussion on \"Nullish coalescing operator (??)\". Have you encountered a scenario during comparison where if first operand is null or undefined, and you want to use the right operand which has defined value? Many Javascript developers faced this scenario often 🙃. Hence, ES11 introduced a logical op..."
url: "https://hashnode.com/posts/nullish-coalescing-operator/61ddcd9544f1964f4fa7d950"
---

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

Discussion

# [Nullish coalescing operator (??)](https://meghanask.hashnode.dev/nullish-coalescing-operator?utm_source=hashnode&utm_medium=feed)

Have you encountered a scenario during comparison where if first operand is null or undefined, and you want to use the right operand which has defined value? Many Javascript developers faced this scenario often 🙃. Hence, ES11 introduced a logical op...

Jan 11, 2022 · 2 min read · meghanask.hashnode.dev  
Updated Jun 10, 2022  
Read the article

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

## Written by

[Meghana S K](https://hashnode.com/@meghanask)

@meghanask

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

Software Developer

## Responses 4

Markdown supported · ⌘↵ to post

[Naga Satya Geeth Veeravali](https://hashnode.com/@nagsgeeth1)

[Jan 13, 2022](https://hashnode.com/posts/nullish-coalescing-operator/61ddcd9544f1964f4fa7d950/comment/61dfabd76bf5f0642b8f189b)

Great blog!

[Meghana S K](https://hashnode.com/@meghanask)

[Jan 13, 2022](https://hashnode.com/posts/nullish-coalescing-operator/61ddcd9544f1964f4fa7d950/comment/61dfabd76bf5f0642b8f189b#reply-61dfe0512b381d6ddc3b19e8)

Thank you Naga 😊

[Digambar](https://hashnode.com/@Digambar14)

[Jan 12, 2022](https://hashnode.com/posts/nullish-coalescing-operator/61ddcd9544f1964f4fa7d950/comment/61df06ba44f1964f4fa7f785)

Great explanation 👌

[Meghana S K](https://hashnode.com/@meghanask)

[Jan 12, 2022](https://hashnode.com/posts/nullish-coalescing-operator/61ddcd9544f1964f4fa7d950/comment/61df06ba44f1964f4fa7f785#reply-61df172544f1964f4fa7f9c2)

Thank you Digambar 😊

[Ayushi Verma](https://hashnode.com/@01av)

[Jan 12, 2022](https://hashnode.com/posts/nullish-coalescing-operator/61ddcd9544f1964f4fa7d950/comment/61de72da4e70945324c58f31)

Explained very well!

[Meghana S K](https://hashnode.com/@meghanask)

[Jan 12, 2022](https://hashnode.com/posts/nullish-coalescing-operator/61ddcd9544f1964f4fa7d950/comment/61de72da4e70945324c58f31#reply-61de806b44f1964f4fa7e717)

Thank you Ayushi ☺️

[Humza Hasan](https://hashnode.com/@humzahasan)

[Jan 12, 2022](https://hashnode.com/posts/nullish-coalescing-operator/61ddcd9544f1964f4fa7d950/comment/61de40a644f1964f4fa7e0e5)

Precisely written. Love the fact that you gave so many examples.

[Meghana S K](https://hashnode.com/@meghanask)

[Jan 12, 2022](https://hashnode.com/posts/nullish-coalescing-operator/61ddcd9544f1964f4fa7d950/comment/61de40a644f1964f4fa7e0e5#reply-61de4c574e70945324c58b44)

Thank you Humza ☺️
