Heap
โ unstructured memory pool to store all Objects for app
the Heap stores all reference types (objects)
Heap is main shared memory of JS Engine Object
Heap Space
โ
V8 organize Heap into Page regions to work with Garbage Collector
Referencesโ
Reference Reassignment
โ New Identifier created ๐ same value to ref Heap Memory Address (where actual Object store in Heap)Object Reference
โ Link to Object as Memory Address pointer to Heap locationJS Engine
โ Program to execute JS Source Code, consists of Call Stack, Heap, Callback Queue & Event LoopGarbage-Collection
โ ๐งนAlgorithm (in JS Engine) to remove old unused Object from Heap MemoryMemory Leak
โ old Values clogging up Heap; left behind, not removedHeap Space
โ V8 organize Heap into Page regions to work with Garbage Collector