top | item 46665693

(no title)

Minor49er | 1 month ago

Not even modern vanilla JavaScript?

discuss

order

marticode|1 month ago

It's fairly close now but so much more verbose: ie document.getElementById('theID') vs $('#theID')

majewsky|1 month ago

Nearly every time I write something in JavaScript, the first line is const $ = (selector) => document.querySelector(selector). I do not have jQuery nostalgia as much as many others here, but that particular shorthand is very useful.

For extra flavor, const $$ = (selector) => document.querySelectorAll(selector) on top.