Menu

Subclasses and Inheritance in JavaScript

A class is a blueprint for something you want to model. You can use a class to create many similar objects. In JavaScript, a class is simply a function (or a constructor) that creates objects where each object created from the constructor function will have the same properties. Additional properties…

Understanding the Keyword "this"

I have always struggled to correctly use the keyword, this, in JavaScript. This is especially the case when functions are invoked from the context of other functions. At a high level, think of this being a variable that simply refers to an object. When this is bound to an object,…