Common mistakes using the “this” in javascript: understanding context

Coming from a classic object orientated programming background and then code in javascript could be some kind of confusing, because we try to apply the same concepts to this language when we try to use the this keyword. The thing is that Java and JavaScript are two very different languages, even if they have similar syntax. Let’s explain how it works:

Read full article