---
title: "Discussion on \"undefined vs not defined in JS\" | Hashnode"
description: "Discussion on \"undefined vs not defined in JS\". Let's understand the difference between undefined and not defined in JavaScript.\nundefined\nWhenever a JS code is executed, a Global  Execution Context  is created. During the first phase(memory allocation phase), all the variables are assigned a valu..."
url: "https://hashnode.com/posts/undefined-vs-not-defined-in-js/60087120394f022604c11195"
---

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

Discussion

# [undefined vs not defined in JS](https://jayprakash07.hashnode.dev/undefined-vs-not-defined-in-js?utm_source=hashnode&utm_medium=feed)

Let's understand the difference between undefined and not defined in JavaScript. undefined Whenever a JS code is executed, a Global Execution Context is created. During the first phase(memory allocation phase), all the variables are assigned a valu...

Jan 20, 2021 · 2 min read · jayprakash07.hashnode.dev  
Read the article

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

## Written by

[JAY KALIA](https://hashnode.com/@jayprakash07)

@jayprakash07 · Bhubaneswar, india

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

All things frontend, @Rizzle | prev - @Toplyne

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
