---
title: "Discussion on \"JS Tips: nullish coalescing operator\" | Hashnode"
description: "Discussion on \"JS Tips: nullish coalescing operator\". Usefull Javascript tips: nullish coalescing operator and its uses"
url: "https://hashnode.com/posts/js-tips-nullish-coalescing-operator/64bbc0f6e6d9172dd05bf6c3"
---

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

Discussion

# [JS Tips: nullish coalescing operator](https://desyed.hashnode.dev/js-tips-nullish-coalescing-operator?utm_source=hashnode&utm_medium=feed)

Usefull Javascript tips: nullish coalescing operator and its uses

Jul 22, 2023 · 2 min read · desyed.hashnode.dev  
Read the article

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

## Written by

[Syed Shihab](https://hashnode.com/@desyed)

@desyed

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

Senior Software Engineer

A Javascript Developer.

## Responses 1

Markdown supported · ⌘↵ to post

[Abhay Singh Rathore](https://hashnode.com/@abhaysinghr1)

[Jul 23, 2023](https://hashnode.com/posts/js-tips-nullish-coalescing-operator/64bbc0f6e6d9172dd05bf6c3/comment/64bd4c290ddc0bf1f8dd4987)

The nullish coalescing operator (??) in JavaScript provides a more precise default value assignment for null and undefined variables compared to the logical OR (||) operator.

[Syed Shihab](https://hashnode.com/@desyed)

[Jul 24, 2023](https://hashnode.com/posts/js-tips-nullish-coalescing-operator/64bbc0f6e6d9172dd05bf6c3/comment/64bd4c290ddc0bf1f8dd4987#reply-64be0e118be04301f9cf80b3)

indeed
