Shadowing
Function-scope var
and const
variables can shadow any function, type,
builtin, parameter or variable declared in a parent scope.
It is an error to declare two variables with the same name in the same scope.
Function-scope var
and const
variables can shadow any function, type,
builtin, parameter or variable declared in a parent scope.
It is an error to declare two variables with the same name in the same scope.