const obj = {
num: 10,
getValue() {
return this.num;
},
getUpdatedValue() {
return (() => this.num + 10)();
}
};
console.log(obj.getValue());
console.log(obj.getUpdatedValue());
Post #1653
6.07K
CHALLENGE
- 🤣 11
- 👍 6
- 🔥 3
- ❤ 1