In global scope defining a function foo
or any const
binding when foo
already had a value would be an error, but we don’t have const
in local scope so it’s allowed.
In global scope defining a function foo
or any const
binding when foo
already had a value would be an error, but we don’t have const
in local scope so it’s allowed.