---
title: "Discussion on \"When To Use the ?? And || In JavaScript.\" | Hashnode"
description: "Discussion on \"When To Use the ?? And || In JavaScript.\". When To Use the ?? And || In JavaScript."
url: "https://hashnode.com/posts/when-to-use-the-and-in-javascript/66f5d10b21151ef923bc8e1d"
---

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

Discussion

# [When To Use the ?? And || In JavaScript.](https://dorendev.hashnode.dev/when-to-use-the-and-in-javascript?utm_source=hashnode&utm_medium=feed)

When To Use the ?? And || In JavaScript.

Sep 26, 2024 · 1 min read · dorendev.hashnode.dev  
Read the article

-   [#javascript-ty](https://hashnode.com/tag/javascript-ty)
-   [#coalescing](https://hashnode.com/tag/coalescing)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#null-safety](https://hashnode.com/tag/null-safety)

## Written by

[Idorenyin Akaninyene](https://hashnode.com/@Idorenyin1914)

@Idorenyin1914 · Nigeria

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

Building for your second home (the web)

## Responses 1

Markdown supported · ⌘↵ to post

[Agunechemba Ekene](https://hashnode.com/@agunechemba)

[Feb 6, 2025](https://hashnode.com/posts/when-to-use-the-and-in-javascript/66f5d10b21151ef923bc8e1d/comment/67a468c72567b879dd5697b0)

Thanks for the reminder..

[Idorenyin Akaninyene](https://hashnode.com/@Idorenyin1914)

[Feb 6, 2025](https://hashnode.com/posts/when-to-use-the-and-in-javascript/66f5d10b21151ef923bc8e1d/comment/67a468c72567b879dd5697b0#reply-67a46d2f8b936462f9a5c07e)

Your welcome, I hope its really helped you.
