const obj = {
value: 42,
getValue() {
return Math.max(this.value, 50);
}
};
const obj2 = {
value: 25,
getValue: obj.getValue
};
console.log(obj.getValue());
console.log(obj2.getValue());
Post #1634
5.34K
CHALLENGE
- ❤ 8
- 👍 2