@shahmir
Web developer with a love for web technologies. Building things with JavaScript including reactjs, nextjs, node, and express.
Developer with a love for web technologies. Building things with react, next and node.
I am available for work.
Yes, the local scope is functional scope. And you're right we should be using let and const because of their strictness. However, this article was not written to recommend the usage of let or const. I wrote it just to show how scoping and lexical environment works. I will definitely write another article on let and const. Thanks :)