minor fixes

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

@ -1886,9 +1886,9 @@ person.isMarried = true
person.getPersonInfo = function () { person.getPersonInfo = function () {
let skillsWithoutLastSkill = this.skills let skillsWithoutLastSkill = this.skills
.splice(0, this.skills.length - 1) .slice(0, this.skills.length - 1)
.join(', ') .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 skills = `${skillsWithoutLastSkill}, and ${lastSkill}`
let fullName = this.getFullName() let fullName = this.getFullName()

Loading…
Cancel
Save