5 ms·
The reddit link in the post right above yours explains that sort is used to get a reference to the "window" object since sort returns "this" and by assigning it
by bradshaw1965 16y ago
The reddit link in the post right above yours explains that sort is used to get a reference to the "window" object since sort returns "this" and by assigning it to a variable it returns the default context which in this case is "window".