-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObject.js
More file actions
58 lines (55 loc) · 1.03 KB
/
Object.js
File metadata and controls
58 lines (55 loc) · 1.03 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// const student={
// fullname : "Rashmi",
// marks : 8.5,
// printMarks:function(){
// console.log(this.marks); //student.marks
// }
// }
const employee = {
calcTax1() {
console.log("Tax Rate is 10% ");
},
};
const Employee1={
salary:7000,
calcTax2() {
console.log("Tax Rate is 20% ");
},
};
const Employee2={
salary:5000,
};
const Employee3={
salary:5000,
};
const Employee4={
salary:5000,
};
const Employee5={
salary:5000,
};
const Employee6={
salary:5000,
};
const Employee7={
salary:5000,
};
const Employee8={
salary:5000,
};
const Employee9={
salary:5000,
};
const Employee10={
salary:5000,
};
Employee1.__proto__=employee;
Employee2.__proto__=employee;
Employee3.__proto__=employee;
Employee4.__proto__=employee;
Employee5.__proto__=employee;
Employee6.__proto__=employee;
Employee7.__proto__=employee;
Employee8.__proto__=employee;
Employee9.__proto__=employee;
Employee10.__proto__=employee;