1.

What is the command to access the Heap size limit?(a) performance.memory. SizeLimit(b) performance.memory. jsHeapSizeLimit(c) jsHeapSizeLimit(d) performance.jsHeapSizeLimitThis question was posed to me in an internship interview.This key question is from Performance Navigation and Memory topic in section Invocation and Performance Navigation of JavaScript

Answer»

The correct ANSWER is (b) performance.memory. jsHeapSizeLimit

Explanation: Memory CONTAINS an object created with MemoryInfo constructor, CONTAINING jsHeapSizeLimit, totalJSHeapSize and usedJSHeapSize properties with numerical values. The command performance.memory. jsHeapSizeLimit is used to access the HEAP SIZE limit.



Discussion

No Comment Found

Related InterviewSolutions