---
title: "Discussion on \"Nullish Coalescing Operator\" | Hashnode"
description: "Discussion on \"Nullish Coalescing Operator\". When should you use the nullish coalescing operator or the or operator in JavaScript?"
url: "https://hashnode.com/posts/nullish-coalescing-operator/64dd70e316b7cdc70a3c4879"
---

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

Discussion

# [Nullish Coalescing Operator](https://blog.alexanderkaran.com/nullish-coalescing-operator?utm_source=hashnode&utm_medium=feed)

When should you use the nullish coalescing operator or the or operator in JavaScript?

Aug 17, 2023 · 2 min read · blog.alexanderkaran.com  
Updated Aug 18, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js](https://hashnode.com/tag/js)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Alexander Karan](https://hashnode.com/@AlexanderKaran)

@AlexanderKaran · Perth, Australia

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

Senior Software Engineer at Atlassian. JavaScript dev, TedX speaker and blogger with a passion for software architecture.

I have been a full-stack developer for twelve years and am currently part of the Cloud FinOps team at Atlassian. I previously ran an App development agency, managing various teams across design and development, leading web, backend and native mobile app developers in Australia and Europe. My strengths are system architecture design and communicating complicated tech to everyday people. Having helped scale tech at numerous startups, I am passionate about making a positive difference. When not working, you can find me writing tech articles and teaching Javascript and React at SheCodes, an initiative helping to get more women into tech. I regularly give talks on various topics, focusing on the impact the technology we build can have. I am devastated by the state of the world, love a good political rant and can often be swearing at no one in particular. I enjoy building things in JavaScript, Deno and Node.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
