© 2023 Hashnode
#scope
Closures are one of the most powerful and fundamental concepts in modern JavaScript development. They enable you to create functions with private variables, handle asynchronous code with callbacks, an…
Scope Scope determines the accessibility (visibility) of variables. Variables declared within a JavaScript function, become LOCAL to the function whereas variables declared outside a function, become GLOBAL ie. all scripts and functions on …
JavaScript is one of the most popular programming languages used today, and for good reason. It allows developers to create dynamic and interactive web applications that can be used across multiple pl…
var, let, const হচ্ছে জাভাস্ক্রিপ্টে ভ্যারিয়েবল ডিক্লেয়ার করার keyword । অর্থাৎ, কোনো ভ্যারিয়েবল লিখার শুরুতে এগুলোর যেকোনো ১ টিকে লিখতে হয়। কাজ সবগুলোর এক হলেও ভাব কিন্তু আলাদা। তো কোন কোন দিক দিয়ে আ…
Introduction A closure gives you access to an outer/enclosing function’s scope, including the variables from an inner function, even after the execution context of the outer scope has popped off the c…
What is a Closure? A closure is a combination of a function bundled (enclosed/packed) together with references to its lexical environment.In layman's terms, a closure is a concept in javascript that p…
This blog aims to explain variables, other related concepts, and the differences between var, let, and const in-depth and in the simplest possible manner. What are variables in JavaScript? Variables a…
Once you start learning JavaScript declaring variables is the first thing you learn and it can be done using 3 ways - var, let and const It can be confusing at first to understand why someone would us…
Introduction To become confident as a JavaScript programmer or developer, you always need to know how everything in your code works. With that understanding, you can avoid certain errors in JavaScript…
INTRODUCTION A variable is a named container in computer programming that holds a value. It can be used to store and manipulate data within the program. The value stored in a variable can be of any d…