The most important things in my life is gaining knowledge and traveling. I am self learning person. Hope to share my experience and help some people in webdev.
We can read in MDN that let and const are actually hoisted.
,,In ECMAScript 2015, let and const are hoisted but not initialized. Referencing the variable in the block > before the variable declaration results in a ReferenceError because the variable is in a "temporal dead zone" from the start of the block until the declaration is processed."
,,let and const declarations define variables that are scoped to the running execution context's LexicalEnvironment. The variables are created when their containing Lexical Environment is instantiated but may not be accessed in any way until the variable's LexicalBinding is evaluated."
The most important things in my life is gaining knowledge and traveling. I am self learning person. Hope to share my experience and help some people in webdev.
We can read in MDN that let and const are actually hoisted.
Furthermore in ecma-international it is writtten that:
True, but in the article I'm talking about var and let .
I understand :) but personally I cannot agree with this sentence
However I like your series of a small posts. Keep going ! :)