In Depth - The many faces of `this` in javascript


The many faces of this in javascript
By Michał Witkowski

In this post, I will do my best to explain one of the most fundamental parts of JavaScript: the execution context. If you use JS frameworks a lot, understanding “this” may at first seem like a nice addition. However, if you are going to take programming seriously, understanding the context is absolutely crucial to being a JavaScript programmer.