Node.js - Debugging and Profiling
Examine this code:
const storedCallbacks = [];
function registerCallback(cb) {
storedCallbacks.push(cb);
}
registerCallback(() => console.log('Event'));
// storedCallbacks never cleared
What memory problem does this cause?