---
title: "Discussion on \"Nullish coalescing (??)  And  Optional chaining (?.)\" | Hashnode"
description: "Discussion on \"Nullish coalescing (??)  And  Optional chaining (?.)\". Nullish coalescing (??)\nnullish coalescing (??) operator is a logical operator that returns its right-hand side operand when its left-hand side operand is null or undefined, otherwise returns its left-hand side operand.\nconst name = null ?? 'Kashif';..."
url: "https://hashnode.com/posts/nullish-coalescing-and-optional-chaining/63f8916ce07ad51f36652ed3"
---

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

Discussion

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

Nullish coalescing (??) nullish coalescing (??) operator is a logical operator that returns its right-hand side operand when its left-hand side operand is null or undefined, otherwise returns its left-hand side operand. const name = null ?? 'Kashif';...

Feb 24, 2023 · 3 min read · kashifhussainpathan.hashnode.dev  
Read the article

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

## Written by

[Kashif Hussain Pathan](https://hashnode.com/@kashifhussainpathan)

@kashifhussainpathan

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

Web Developer

Front-End Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
