---
title: "Discussion on \"What is Nullish coalescing operator (??) in javascript?\" | Hashnode"
description: "Discussion on \"What is Nullish coalescing operator (??) in javascript?\". It is an operator which handles the undefined and null values. It is denoted by ??\nExpression1 ?? Expression2\nNullish coalescing operator first checks Expression1.\n\nIf Expression1 is undefined or null it will return Expression2.\n\nconst nullishVariabl..."
url: "https://hashnode.com/posts/what-is-nullish-coalescing-operator-in-javascript/63f2699cfa88abf2f71a963d"
---

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

Discussion

# [What is Nullish coalescing operator (??) in javascript?](https://kesharvani.hashnode.dev/what-is-nullish-coalescing-operator-in-javascript?utm_source=hashnode&utm_medium=feed)

It is an operator which handles the undefined and null values. It is denoted by ?? Expression1 ?? Expression2 Nullish coalescing operator first checks Expression1. If Expression1 is undefined or null it will return Expression2. const nullishVariabl...

Feb 19, 2023 · 2 min read · kesharvani.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)
-   [#javascript-library](https://hashnode.com/tag/javascript-library)
-   [#javascript-modules](https://hashnode.com/tag/javascript-modules)
-   [#javascript-cikobu60x00mn7453gsb38dqp](https://hashnode.com/tag/javascript-cikobu60x00mn7453gsb38dqp)

## Written by

[Shubham Kesharvani](https://hashnode.com/@Kesharvani)

@Kesharvani · India

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

Software Developer

Exploring and documenting my journey of web development.

## Responses 1

Markdown supported · ⌘↵ to post

[Syed Mustassim Mustaq](https://hashnode.com/@mustassim)

[Feb 28, 2023](https://hashnode.com/posts/what-is-nullish-coalescing-operator-in-javascript/63f2699cfa88abf2f71a963d/comment/63fe551be35451336c8c91b5)

A concise blog and straight to the point! Well written, Shubham!

[Shubham Kesharvani](https://hashnode.com/@Kesharvani)

[Mar 1, 2023](https://hashnode.com/posts/what-is-nullish-coalescing-operator-in-javascript/63f2699cfa88abf2f71a963d/comment/63fe551be35451336c8c91b5#reply-63fef9eccc757f40b9b8ea7b)

Thanks Syed.
