Quite a few examples in this repo extensively use var.
This is a bad practice; we have eliminated them from mdn/content (and other repos). We should do the same here: most will be simply replaced by const and let, although there may be a few more complex cases (where var is used inside a scope for a variable at a higher scope)
Quite a few examples in this repo extensively use
var.This is a bad practice; we have eliminated them from mdn/content (and other repos). We should do the same here: most will be simply replaced by
constandlet, although there may be a few more complex cases (wherevaris used inside a scope for a variable at a higher scope)