We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f44466 commit 0c3ec83Copy full SHA for 0c3ec83
01_Day_JavaScript_Refresher/01_javascript_refresher.md
@@ -1886,9 +1886,9 @@ person.isMarried = true
1886
1887
person.getPersonInfo = function () {
1888
let skillsWithoutLastSkill = this.skills
1889
- .splice(0, this.skills.length - 1)
+ .slice(0, this.skills.length - 1)
1890
.join(', ')
1891
- let lastSkill = this.skills.splice(this.skills.length - 1)[0]
+ let lastSkill = this.skills.slice(this.skills.length - 1)[0]
1892
1893
let skills = `${skillsWithoutLastSkill}, and ${lastSkill}`
1894
let fullName = this.getFullName()
0 commit comments