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.

Related Questions

What is the command to access the Heap size limit?
Which languages necessarily need heap allocation in the runtime environment?
Which of the following property indicate the total size of heap?
Who said "The Simmon Commission Report should be thrown on a heap of rubbish"?

Next steps