JavaScript nodelist hazards

If you grab a bunch of elements from your webpage with document.getElementsByClassName though the console may tell you the elements inhabit an array, they are actually in a NodeList. You can interact with a NodeList very similarly to an array, but unlike an array a NodeList is live-updated. This difference will probably only matter if […]