JavaScript: this – [full explanation]
This ‘this’ keyword is very confusing when you are writing code, especially when you read others’ code.This article’s goal is to eradicate those confusions. You have to remember a few things about ‘this’ and consider where you are using it and how you are using it.