InterviewSolution
Saved Bookmarks
| 1. |
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 memoryThis question was posed to me in an interview for job.The query is from Performance Navigation and Memory topic in division Invocation and Performance Navigation of JavaScript |
|
Answer» RIGHT CHOICE is (b) Collection of JAVASCRIPT objects To EXPLAIN: 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. |
|