Understanding `this` in JavaScript
Aug 18, 2024 · 2 min read · In this blog I will be going through this tricky JS interview question which lot of people find confusing initially.Let's get started. 1. What will be the output of this? function Person(name) { this.name = name; this.getName = function () { ...
Join discussion



