Whenever we start learning a programming language, the first thing we need to know is "Scope". By definition, "scope" in any programming language means which variables we have access to inside a block or function. This scope gives rise to huge confusion in JavaScript because it has something called "Lexical Scoping" and that's different from other programming languages. That's why people coming from other programming backgrounds like C, C++ or even PHP find it super weird!
In this tutorial, I tried to explain Scope as easy as possible in absolute Bengali language. Hope you will understand everything related to this weird JS Scope after watching this video. If you have any questions or queries or feedback, please don't hesitate to leave a comment. And if you think this tutorial was helpful for you, then please press the like button and subscribe to my channel for future videos.
#scope #javascript #bangla_programming_tutorial