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