---
title: "Discussion on \"JavaScript undefined and null: Let's talk about it one last time!\" | Hashnode"
description: "Discussion on \"JavaScript undefined and null: Let's talk about it one last time!\". In JavaScript, undefined and null are very different from each other. However, there are only a few similarities that may confuse a beginner to the language. This article aims to explain the similarities, differences, and usages with examples. Hope y..."
url: "https://hashnode.com/posts/javascript-undefined-and-null-lets-talk-about-it-one-last-time/5fa5277347631a19e8120044"
---

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

Discussion

# [JavaScript undefined and null: Let's talk about it one last time!](https://blog.greenroots.info/javascript-undefined-and-null-lets-talk-about-it-one-last-time?utm_source=hashnode&utm_medium=feed)

In JavaScript, undefined and null are very different from each other. However, there are only a few similarities that may confuse a beginner to the language. This article aims to explain the similarities, differences, and usages with examples. Hope y...

Nov 6, 2020 · 5 min read · blog.greenroots.info  
Updated Nov 12, 2020  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming](https://hashnode.com/tag/programming)
-   [#beginner](https://hashnode.com/tag/beginner)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Tapas Adhikary](https://hashnode.com/@atapas)

@atapas · Bangalore

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

Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source

Co-Founder, @CreoWis | Teacher, @tapaScript | Founder, @ReactPlay | YouTuber | Writer | Human

## Responses 2

Markdown supported · ⌘↵ to post

[Maxi Contieri](https://hashnode.com/@mcsee)

[Nov 7, 2020](https://hashnode.com/posts/javascript-undefined-and-null-lets-talk-about-it-one-last-time/5fa5277347631a19e8120044/comment/5fa5efc40163314ab6d7e472)

Nice article.

Watch out for null as it is a code Smell and should be avoided most of the times.

As you correctly state in your article is very different to undefined.

[https://mcsee.hashnode.dev/code-smell-12-null](https://mcsee.hashnode.dev/code-smell-12-null)

[Tapas Adhikary](https://hashnode.com/@atapas)

[Nov 7, 2020](https://hashnode.com/posts/javascript-undefined-and-null-lets-talk-about-it-one-last-time/5fa5277347631a19e8120044/comment/5fa5efc40163314ab6d7e472#reply-5fa60fe154cc5b4ad931e645)

Absolutely! Thanks for pointing to your code smell series.

[Amit Gupta](https://hashnode.com/@amit-gupta)

[Nov 6, 2020](https://hashnode.com/posts/javascript-undefined-and-null-lets-talk-about-it-one-last-time/5fa5277347631a19e8120044/comment/5fa575360163314ab6d7dfac)

Amazing post brother

[Tapas Adhikary](https://hashnode.com/@atapas)

[Nov 6, 2020](https://hashnode.com/posts/javascript-undefined-and-null-lets-talk-about-it-one-last-time/5fa5277347631a19e8120044/comment/5fa575360163314ab6d7dfac#reply-5fa57a4854cc5b4ad931e0b6)

Thanks [Amit Gupta](https://hashnode.com/@amit-gupta). Glad it was useful.
