From b0e7488ad44eb3145d339bd3a5c34a70b8fd2882 Mon Sep 17 00:00:00 2001 From: MChrupczalski Date: Sun, 22 Jan 2023 22:15:43 +0000 Subject: [PATCH] Update script.js Replace the object variable name with `this` keyword within the object method --- 02-Fundamentals-Part-2/final/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02-Fundamentals-Part-2/final/script.js b/02-Fundamentals-Part-2/final/script.js index 8cee2087f7..81d92dd7b0 100755 --- a/02-Fundamentals-Part-2/final/script.js +++ b/02-Fundamentals-Part-2/final/script.js @@ -352,7 +352,7 @@ const jonas = { }, getSummary: function () { - return `${this.firstName} is a ${this.calcAge()}-year old ${jonas.job}, and he has ${this.hasDriversLicense ? 'a' : 'no'} driver's license.` + return `${this.firstName} is a ${this.calcAge()}-year old ${this.job}, and he has ${this.hasDriversLicense ? 'a' : 'no'} driver's license.` } };