generated from skills/copilot-codespaces-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
member.js
33 lines (33 loc) · 831 Bytes
/
member.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function skillsMember() {
var member = {
name: "John Doe",
age: 25,
skills: ["js", "html", "css"],
salary: 25000,
address: {
city: "Bangalore",
state: "Karnataka",
pincode: 560001
},
getName: function () {
return this.name;
},
getAge: function () {
return this.age;
},
getSkills: function () {
return this.skills;
},
getSalary: function () {
return this.salary;
},
getAddress: function () {
return this.address;
}
};
console.log(member.getName());
console.log(member.getAge());
console.log(member.getSkills());
console.log(member.getSalary());
console.log(member.getAddress());
}