Skip to content

Commit 0c3ec83

Browse files
committed
minor fixes
1 parent 3f44466 commit 0c3ec83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

01_Day_JavaScript_Refresher/01_javascript_refresher.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1886,9 +1886,9 @@ person.isMarried = true
18861886

18871887
person.getPersonInfo = function () {
18881888
let skillsWithoutLastSkill = this.skills
1889-
.splice(0, this.skills.length - 1)
1889+
.slice(0, this.skills.length - 1)
18901890
.join(', ')
1891-
let lastSkill = this.skills.splice(this.skills.length - 1)[0]
1891+
let lastSkill = this.skills.slice(this.skills.length - 1)[0]
18921892

18931893
let skills = `${skillsWithoutLastSkill}, and ${lastSkill}`
18941894
let fullName = this.getFullName()

0 commit comments

Comments
 (0)