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
In questa pagina del sito puoi guardare il video online JavaScript Scope and Hoisting Explained | JavaScript Bangla Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato JS Bangladesh 21 novembre 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 9,715 volte e gli è piaciuto 331 spettatori. Buona visione!