---
title: "Comment by Abhay Singh Rathore on \"JS Tips: nullish coalescing operator\" | Hashnode"
description: "The nullish coalescing operator (??) in JavaScript provides a more precise default value assignment for null and undefined variables compared to the logical OR"
url: "https://hashnode.com/posts/js-tips-nullish-coalescing-operator/64bbc0f6e6d9172dd05bf6c3/comment/64bd4c290ddc0bf1f8dd4987"
---

[Discussion](https://hashnode.com/posts/js-tips-nullish-coalescing-operator/64bbc0f6e6d9172dd05bf6c3)

Comment [JS Tips: nullish coalescing operator](https://hashnode.com/posts/js-tips-nullish-coalescing-operator/64bbc0f6e6d9172dd05bf6c3)

[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
