https://tutorial.eyehunts.com/js/block-scope-javascript-basics/
Block scope JavaScript | Basics