JavaScript has two scopes – Global Scope and Function Scope. Any variable declared outside of a function belongs to the global scope, and is therefore accessible from anywhere in your code. Each function has its own scope, and any variable declared within that function is only accessible from that function and any nested functions. Because local scope(function scope) in JavaScript is created by functions, it’s also called function scope. When we put a function inside another function, then we create nested scope.
Currently, JavaScript, unlike many other languages, supports block level scoping with the keyword 'let' and 'const'.
JavaScript Hoisting: Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope before code execution.
আজকের ক্লাসে আমাদের আলোচনার টপিক ছিলোঃ
• Global Variable with Global Scope
• Local Variable with Local Scope
• What is JavaScript Hoisting?
• Use of let keyword
• Use of const keyword
আগের ক্লাসঃ • General Loops | JavaScript Bangla Tutorial
Related Tags: javascript, hoisting, js, javascript hoisting, javascript for beginners, const, let, ecmascript2015, es6, es2015, programming in js, scope chain javascript, scope chain, learn javascript, scope, var, javascript tutorial, javascript review, javascript hoisting scopes closures, javascript closures vs scopes, javascript closures, javascript scopes, variable hoisting, execution context, javascript variable hoisting, scopes, closures, javascript hoisting of variables, saidur rahman setu, setu, modern javascript, let vs const vs var, JavaScript Variable Scope and Hoisting, javascript scope of variables, javascript scope in bangla, javascript scope explained, what is scope in javascript, function scope, local scope, global scope, javascript var scope, জাভাস্ক্রিপ্ট বাংলা টিউটোরিয়াল, জাভাস্ক্রিপ্ট টিউটোরিয়াল, জাভাস্ক্রিপ্ট, জাভাস্ক্রিপ্ট স্কোপ, জাভাস্ক্রিপ্ট হোইস্টিং, জাভাস্ক্রিপ্ট let, জাভাস্ক্রিপ্ট const, javascript hoisting explained, javascript hoisting es6, javascript hoisting in bangla, javascript variable hoisting, function hoisting js, what is javascript hoisting, javascript hoisting questions, javascript hoisting tutorial
#JavaScript #BanglaTutorial #Scope
Auf dieser Seite können Sie das Online-Video JavaScript Scope and Hoisting Explained | JavaScript Bangla Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer JS Bangladesh 21 November 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 9,715 Mal angesehen und es wurde von 331 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!