Understanding `this` in JavaScript: Arrow Functions vs Function Keyword
If you’ve been writing JavaScript for a while, chances are you’ve run into one of the most confusing keywords: this. Sometimes it gives you what you expect, sometimes it doesn’t — and suddenly your console.log shows undefined.
Let’s clear up the conf...
viratcodesjs.hashnode.dev3 min read