1.

What does the usedJsHeapSize property indicate?(a) Amount of memory used(b) Amount of memory unused(c) Amount of memory used & unused(d) Amount of memory requiredThe question was posed to me by my college director while I was bunking the class.The question is from Performance Navigation and Memory in section Invocation and Performance Navigation of JavaScript

Answer»

Correct answer is (a) Amount of memory used

To EXPLAIN I WOULD SAY: usedJsHeapSize returns an object of type ObjectObject. An object created with MemoryInfo CONSTRUCTOR, containing jsHeapSizeLimit, totalJSHeapSize and usedJSHeapSize properties with numerical values. The usedJsHeapSize property is the amount of memory that all of the CURRENT objects in the heap are using.



Discussion

No Comment Found

Related InterviewSolutions