JavaScript Quiz Practice
Active Recall Drill Session
← Exit SessionQuestion 1 of 1
mediumJavaScript
Does this code leak memory, assuming the interval is never cleared?
code
function watch(bigArray) {
setInterval(() => {
console.log(bigArray.length);
}, 1000);
}