Re:jQuery 3.6.0
by wishinghand on Tuesday March 02, 2021 @02:35PM
(#26319455)
One could also save document.querySelector to $ as a constant.
[ Parent
| on HN ]
That would be very confusing for unsuspecting reader. Please use something different, I would suggest `qs` for `querySelector` and `qsa` for `querySelectorAll`.
Re:jQuery 3.6.0
by wishinghand on Tuesday March 02, 2021 @07:01PM
(#26322988)
This method is not so much for multi-dev codebases but for single devs working on their personal or low-tech sites and are having a hard time letting the $('some-selector') syntax go.