Getting Started With JavaScript: Exploring the role of ‘this’ within methods

In this article, we take a closer look at this in the classic function declaration (traditional), the modern arrow function expression, and the ES6 shorthand notation. In JavaScript, this refers to the current object. It helps methods inside the object access and modify the object’s data without explicitly mentioning the object’s name. This makes code … Continue reading Getting Started With JavaScript: Exploring the role of ‘this’ within methods