`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.

let vs var_1

 

let vs var_2

Reference:

ExploringJS ES6 variables

Advertisements

2 thoughts on “`let` vs `var` – Part 2

Add yours

  1. I’m now not positive the place you’re getting your information, but good topic. I must spend some time studying much more or understanding more. Thanks for excellent information I used to be in search of this information for my mission.

  2. Thank you a lot for sharing this with all of us you really understand what you’re talking approximately! Bookmarked. Kindly additionally consult with my website =). We can have a hyperlink alternate agreement between us!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: