Hey! Yeah, get element by class can be tricky if the DOM isn't fully loaded. Try wrapping your code in `DOMContentLoaded` or put the script at the bottom of your HTML.
Also, HTMLCollections are live, so if you modify the DOM after grabbing elements, it might update. For looping, `Array.from()` is clean, or just use a classic `for` loop.
If you're still stuck, check out MDN's docs on get element by class—super helpful!
Also, HTMLCollections are live, so if you modify the DOM after grabbing elements, it might update. For looping, `Array.from()` is clean, or just use a classic `for` loop.
If you're still stuck, check out MDN's docs on get element by class—super helpful!
