Mar 27 · 5 min read · Handling events is a fundamental part of building interactive web applications. Whenever a user clicks a button, submits a form, or presses a key, the browser generates an event. But what many develop
Join discussionMar 15 · 11 min read · When you start working with DOM manipulation in JavaScript, you'll quickly run into two similar-looking objects: HTMLCollection and NodeList. They look almost identical, both give you collections of e
Join discussion
Mar 13 · 3 min read · The Bug That Started It All I was working with DOM elements, and I wanted to fetch all the li items from the list. I used querySelectorAll(), which returned a NodeList of length 3, and then I appended
Join discussion