What is the purpose of the WeakMap in JavaScript?
What is the purpose of the WeakMap in JavaScript? a) To store key-value pairs where the keys are objects and the values can be garbage collected if no other references exist b) To store primitive values and prevent memory leaks c) To create a map with weak references to keys d) To store values that […]
What is the purpose of the WeakMap in JavaScript? Read More »