logoalt Hacker News

petre • today at 9:04 PM • 0 replies • view on HN

Go ahead, use document.querySelector. Why? Because chaining and a bunch of other stuff and not bothering to check if querySelector actually got anything every single time. Vanilla JS is like bringing a knife to a gun fight.