Knowing JS ES6 Series

Hi guys. I’ve been learning ES6 for quite some time now and have found it to be a lot refreshing and exciting. Thought of sharing whatever I’ve learned with you guys and I’ve planned to do it as a series, with each post concentrating on one aspect of the language in detail. This post is meant to just have links to all the posts so that you don’t miss any of them. See you in the posts.. ­čÖé


  1. Knowing JS – ES6- var, let and const

Replacing ‘that = this’ assignments in Javascript with Arrow Functions

In a previous post, I was explaining how a that = this assignment was required to preserve the value of the this variable in certain scenarios. This post will focus on how to resolve them using arrow functions.

Continue reading

What does ‘that = this’ in Javascript mean?

When you go through some of the popular JS libraries you might start noticing this peculiar line all over the place.

that = this

First impressions, you could figure out that it had something to do with the value of the variable this being inconsistent, so they had to store in a variable and use it later. So I did some digging into it and found out why this assignment was a necessity back then and how we can overcome them.

Continue reading