Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Asabeneh committed Oct 13, 2020
1 parent 3f44466 commit 0c3ec83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 01_Day_JavaScript_Refresher/01_javascript_refresher.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0c3ec83

Please sign in to comment.