Skip to content

Commit

Permalink
github 2nd commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kkannan77 committed Jan 20, 2025
1 parent bef5e6a commit 780bc2a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions member.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
function skillsMember() {
return {
name: "John Doe",
skills: ["HTML", "CSS", "JavaScript"],
addSkill(skill) {
this.skills.push(skill);
},
editSkill(oldSkill, newSkill) {
const index = this.skills.indexOf(oldSkill);
this.skills[index] = newSkill;
},
deleteSkill(skill) {
const index = this.skills.indexOf(skill);
this.skills.splice(index, 1);
}
};
}

0 comments on commit 780bc2a

Please sign in to comment.