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.
-1
u/Bag06a Feb 07 '19
It's "pure" JavaScript.....it shouldn't really make you cringe. It can be essential to know it