Understanding how this is calculated in JS is one of the fundamental concepts in web development. Let us focus on some important points about it.
Now we will look at the cases where this can take different values for standard functions.
Standard functions are the non-arrow functions. For e.g
this has troubled me for so long that I ended up making plethora of notes to get a hang of it, for once & for all. And finally, I have been able to conquer it to a large extent. I hope to help you do the same but faster.
In this article, I will be talking about how this behaves in an arrow function.
Note: we are considering non-strict mode for all intents & purposes of this article, so default global object will be
These are compact expressions for writing smaller and compact functions but can be used like…
I am a professional front end web developer, aiming to become a full stack developer. I do digital drawing and love learning new frameworks.