JavaScript Variables Lifecycle Why let Is Not Hoisted
转载:JavaScript Variables Lifecycle: Why let Is Not Hoisted
Hoisting is the process of virtually moving the variable or function definition to the beginning of the scope, usually for variable statement var and function declaration function fun() {...} .
When let (and also const and...
more...