title: JavaScript memory leaks with array.pop() or array.shift()
body: <p>What does happen in memory when methods like <code>pop()</code> or <code>shift()</code> in JavaScript are being called in arrays which hold references to objects? Are memory spaces automatically marked for garbage collection?</p>