---
title: "Discussion on \"undefined vs not defined in JavaScript\" | Hashnode"
description: "Discussion on \"undefined vs not defined in JavaScript\". undefined !== not defined\nLet us understand the difference between   undefined and not defined\nLet us start\nLook at the code snippet below\nlet a = 1;\nconsole.log(a) //1\nHere, We have just assigned  1 to variable a. And  if we console.log , we get out..."
url: "https://hashnode.com/posts/undefined-vs-not-defined-in-javascript/61801472f597ba4a827962a2"
---

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

Discussion

# [undefined vs not defined in JavaScript](https://learnwithakshitha.hashnode.dev/undefined-vs-not-defined-in-javascript?utm_source=hashnode&utm_medium=feed)

undefined !== not defined Let us understand the difference between undefined and not defined Let us start Look at the code snippet below let a = 1; console.log(a) //1 Here, We have just assigned 1 to variable a. And if we console.log , we get out...

Nov 1, 2021 · 2 min read · learnwithakshitha.hashnode.dev  
Updated Jun 1, 2022  
Read the article

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

## Written by

[Miryala Akshitha](https://hashnode.com/@learnwithakshitha)

@learnwithakshitha · Hyderabad, INDIA

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

keep learning

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
