JavaScript Scope and Hoisting Explained | JavaScript Bangla Tutorial

Published: 21 November 2019
on channel: JS Bangladesh
9,715
331

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


On this page of the site you can watch the video online JavaScript Scope and Hoisting Explained | JavaScript Bangla Tutorial with a duration of hours minute second in good quality, which was uploaded by the user JS Bangladesh 21 November 2019, share the link with friends and acquaintances, this video has already been watched 9,715 times on youtube and it was liked by 331 viewers. Enjoy your viewing!