`let` vs `var` – Part 2

Here is the interview series of posts. The Part 1 of this post is here. In this tech-cartoon post, I am trying to explain the life cycle of variables, the temporary dead zone (TDZ) and how storage is created for let vs var in loops.   Reference: ExploringJS ES6 variables

Advertisements

`let` vs `var` – Part 1

Cover image courtesy - here. This series of posts is aimed at preparing oneself to face JavaScript technical interviews. Here is the source code. In this post, I shall talk about let vs var, scoping, and hoisting of JavaScript variables. let vs var The main difference between let vs var is that they have block vs function scope respectively. What is... Continue Reading →

Create a free website or blog at WordPress.com.

Up ↑