From 0c3ec83374a6e2da4044b4864d54a0cb2edf3db7 Mon Sep 17 00:00:00 2001 From: asabeneh Date: Tue, 13 Oct 2020 11:59:42 +0300 Subject: [PATCH] minor fixes --- 01_Day_JavaScript_Refresher/01_javascript_refresher.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/01_Day_JavaScript_Refresher/01_javascript_refresher.md b/01_Day_JavaScript_Refresher/01_javascript_refresher.md index 0c808d62f1..7d03fb40af 100644 --- a/01_Day_JavaScript_Refresher/01_javascript_refresher.md +++ b/01_Day_JavaScript_Refresher/01_javascript_refresher.md @@ -1886,9 +1886,9 @@ person.isMarried = true person.getPersonInfo = function () { let skillsWithoutLastSkill = this.skills - .splice(0, this.skills.length - 1) + .slice(0, this.skills.length - 1) .join(', ') - let lastSkill = this.skills.splice(this.skills.length - 1)[0] + let lastSkill = this.skills.slice(this.skills.length - 1)[0] let skills = `${skillsWithoutLastSkill}, and ${lastSkill}` let fullName = this.getFullName()