---
title: "Discussion on \"Lesson 19: Mastering JavaScript  Nullish coalescing operator (??)  with challenges!\" | Hashnode"
description: "Discussion on \"Lesson 19: Mastering JavaScript  Nullish coalescing operator (??)  with challenges!\". ✅ What is ???\nThe nullish coalescing operator (??) returns the first defined value among its operands.\nA value is considered \"defined\" if it’s not null and not undefined.\n✅ Syntax\nlet result = a ?? b;\n\n\nIf a is not null or undefined, it returns a\n\nOt..."
url: "https://hashnode.com/posts/lesson-19-mastering-javascript-nullish-coalescing-operator-with-challenges/680084ff84f43a6b823d847f"
---

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

Discussion

# [Lesson 19: Mastering JavaScript Nullish coalescing operator (??) with challenges!](https://javascript-day-1.hashnode.dev/lesson-19-mastering-javascript-nullish-coalescing-operator-with-challenges?utm_source=hashnode&utm_medium=feed)

✅ What is ??? The nullish coalescing operator (??) returns the first defined value among its operands. A value is considered "defined" if it’s not null and not undefined. ✅ Syntax let result = a ?? b; If a is not null or undefined, it returns a Ot...

Apr 17, 2025 · 4 min read · javascript-day-1.hashnode.dev  
Read the article

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

## Written by

[manoj ymk](https://hashnode.com/@manoj-ymk)

@manoj-ymk

  
[View profile](https://hashnode.com/@manoj-ymk)

“Daily Dev Notes — For You and Future Me”

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
