Variable Shadowing in JavaScript
Block ScopingTo understand shadowing in JavaScript, we need to be clear with the scope first. In computer programming languages, Scope is a certain section/region of the program where a defined variable can exist and can be recognized, beyond that it can't be accessed. In JavaScript, a Block is a co