---
title: "Comment by Satish on \"Understanding JS Memory Allocation: Undefined vs Not Defined\" | Hashnode"
description: "Prerana Nawar Thanks for the information: 'undefined' means waiting for it to be defined, which may or may not assign other( other then defalut value : undefine"
url: "https://hashnode.com/posts/understanding-js-memory-allocation-undefined-vs-not-defined/65a5413d6283e36eb0cb297e/comment/679f0608cd473bfec46f0885"
---

[Discussion](https://hashnode.com/posts/understanding-js-memory-allocation-undefined-vs-not-defined/65a5413d6283e36eb0cb297e)

Comment [Understanding JS Memory Allocation: Undefined vs Not Defined](https://hashnode.com/posts/understanding-js-memory-allocation-undefined-vs-not-defined/65a5413d6283e36eb0cb297e)

[Satish](https://hashnode.com/@techwithsatish)

[Feb 2, 2025](https://hashnode.com/posts/understanding-js-memory-allocation-undefined-vs-not-defined/65a5413d6283e36eb0cb297e/comment/679f0608cd473bfec46f0885)

[Prerana Nawar](https://hashnode.com/@precodes)Thanks for the information: 'undefined' means waiting for it to be defined, which may or may not assign other( other then defalut value : undefined) value in future. However, during memory allocation, the memory is allocated for it. On the other hand, 'not defined' is a reference error because memory space is not allocated for it, and we did not even declare the variable.
