It is cringe because that will cause an extra function call (that traverses the entire DOM!) and create an unnecessary NodeList object. Rather than doing what they did, what they should do is simply document.body which is both easier to understand and more efficient.
4
u/ProgramTheWorld Feb 07 '19
As a web dev, reading this hurts.