Glossary term
What is shadowing (Variable shadowing)?
shadowing stands for Variable shadowing.
Declaring a variable in an inner scope with the same name as one outside. The inner one hides the outer one until the inner scope ends.
Learn it properly · JavaScript CoreLesson 9: Block Scope and ShadowingA block is anything inside { }. Simple idea — but var and let react to that boundary in completely different, and sometimes dangerous, ways. What a block creates in memory, how nested blocks chain, and every shadowing rule — legal, illegal, and the function-boundary exception.