I can't even remember the last time I used var when writing JavaScript. Scoped const/let are just easier to reason with.
This seems bad.
This seems bad.
I mostly switch to Chrome when debugging PWA. Other then that Firefox gives me better UX.
We tend to think that newer is better and faster, but it's also wise to think that old apis had to be fast on old hardware. Hardware that is not the target of new APIs.
IE 8 got querySelector before IE 9 got getElementsByClassName, so it’s not really an old vs. new thing, and I don’t think anyone expects querySelector to be faster than getElementById.
Also, block-scoping is a language feature that's fundamental to virtually every other modern language out there. This isn't some high-falutin' new API. This is basic.