thanks for the contribution, but IMO this is off-topic. the point made here could also be extended to many parts of JS, e.g. function declarations vs named function expressions -- they both define variables in the same scope + any case where you define two variables in the same scope will mean that the second one will override the first
thanks for the contribution, but IMO this is off-topic. the point made here could also be extended to many parts of JS, e.g. function declarations vs named function expressions -- they both define variables in the same scope + any case where you define two variables in the same scope will mean that the second one will override the first