Types of memory in JavaScript
May 26, 2024 · 1 min read · Stackmemory :- It stores primitive data type. Size is known as compile time. It stores static data. Allocated a fixed amount of memory. Let's understand by a simple code : Here, if num2 is equal to num1 then when we update the value of num2, num1 ...
Join discussion