Tag: javascript
-
Execution Context in Javascript

One of the more difficult topics I’ve been learning about in OOP is the idea of execution context. I’ll start by illustrating an issue I got caught in. In this code snippet, I created a new class, Person with a constructor function for name and age. I then added the function `aboutMe` to its prototype…