As a developer, you often need to query like elements using a class or an attribute as a selector. Luckily JavaScript has several methods built in such as getElementById(), getElementByClassName(), or querySelector(). Working with these methods you w...

Markdown supported · ⌘↵ to post
trav
sr dev @ universal music, forker @ crablang
Thanks for this clarification! I know this has personally tripped me up a few times, especially working in TypeScript. It would be cool to see some use cases showing the advantages of each.