3 ms·
Javascript sort of does Stack - the event loop uses this for handling callback executions Heap - memory addresses for objects. For instance if you copy over a
by Kagerjay 6y ago
Javascript sort of does
Stack - the event loop uses this for handling callback executions
Heap - memory addresses for objects. For instance if you copy over an array of objects, you are copying the pointers to those memory addresses inside the array.
Also memory leaks to some extent with eventListeners especially when you use a framework like React