You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1163,12 +1163,12 @@ var emp = new Employee("James Bond");
1163
1163
1164
1164
// uses the get method in the background
1165
1165
if (emp.name) {
1166
-
console.log(emp.name); // Mr. James Bond
1166
+
console.log(emp.name); // Mr. JAMES BOND
1167
1167
}
1168
1168
1169
1169
// uses the setter in the background
1170
1170
emp.name="Bond 007";
1171
-
console.log(emp.name); // Mr. Bond 007
1171
+
console.log(emp.name); // Mr. BOND 007
1172
1172
```
1173
1173
1174
1174
Latest browsers are also supporting getter/setter functions in Objects and we can use them for computed properties, adding listeners and preprocessing before setting/getting:
0 commit comments