What is a heap in JavaScript?
A
Collection of Java objects
B
Collection of JavaScript objects
C
Collection of memory usage values
D
Collection of data stored in memory
Correct Answer: Collection of JavaScript objects
A heap is a tree-like data structure where each node must be ordered with respect to the value of its children. The heap is the collection of JavaScript objects that the interpreter keeps in resident memory.