minor fixes

pull/64/head
asabeneh 4 years ago
parent 3f444666e4
commit 0c3ec83374

@ -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()

Loading…
Cancel
Save