From 937082c56d8fb648feeeaa581f8e9078d7df1cff Mon Sep 17 00:00:00 2001 From: Facundo Arancet Iza Date: Wed, 17 Mar 2021 07:44:15 -0300 Subject: [PATCH 1/2] Changed firstName propery to just name --- somedoe.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/somedoe.js b/somedoe.js index a3963d7..2985b52 100644 --- a/somedoe.js +++ b/somedoe.js @@ -1,9 +1,9 @@ var person = { - firstName: "john", - lastName : "doe", + name: "John", + lastName : "Doe", id : 5566, fullName : function() { - return this.firstName + " " + this.lastName; + return this.name + " " + this.lastName; } }; From 0a696d3ac90ca8ddb2f809a8341646540c5c0076 Mon Sep 17 00:00:00 2001 From: Facundo Arancet Iza Date: Wed, 17 Mar 2021 07:47:13 -0300 Subject: [PATCH 2/2] Added string interpolation to fullName method --- somedoe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/somedoe.js b/somedoe.js index a3963d7..aa89bf2 100644 --- a/somedoe.js +++ b/somedoe.js @@ -3,7 +3,7 @@ var person = { lastName : "doe", id : 5566, fullName : function() { - return this.firstName + " " + this.lastName; + return `${this.firstName} ${this.lastName}`; } };