Block Scope
To enforce block-scoping in JavaScript, the let
keyword can be used. It makes variables inaccessible from the outside of their blocks:
1 |
|
To enforce block-scoping in JavaScript, the let
keyword can be used. It makes variables inaccessible from the outside of their blocks:
1 |
|