Note: This post is work-in-progress learning-note and still in active development and updated regularly. In ECMAScript 2015 (ES6), a new let keyword was introduced to declare JS variables. Variables declared with let keyword declares a block scope local variable, optionally initializing it to a value. Temporal dead zone is referred in MDN, as follows: In […]
Declaring JS Variables – var, let & const
Note: This post is work-in-progress learning-note and still in active development and updated regularly. JavaScript (JS) variables are an important concepts. JS variables are used as containers to store different data types. To understand and use JS variables, we must of be familiar with variable scope and variable hoisting. Lets look at some of the […]
Understanding JS Variables – Scopes & Hoisting
This post is work-in-progress learning-note and still in active development and updated regularly. JavaScript variables and variable declaration are described in Declaring JS Variables – var, let & const post separately. In the posts, variable scope & hoisting were discussed briefly. In this post we try to look scope & hoisting in more detail. Understanding […]
