А
let user = {
name: "John",
money: 1000,
toString() {
return this.name;
},
valueOf() {
return this.money;
}
};
console.log(user);
Почему не выводит John?Size: a a a
А
let user = {
name: "John",
money: 1000,
toString() {
return this.name;
},
valueOf() {
return this.money;
}
};
console.log(user);
Почему не выводит John?А
{
name: 'John',
money: 1000,
toString: [Function: toString],
valueOf: [Function: valueOf]
}
Л
Л
let user = {
name: "John",
money: 1000,
toString() {
return this.name;
},
valueOf() {
return this.money;
}
};
console.log(user);
Почему не выводит John?А
🅚
А
Л
А
console.log(+user
) , то выводит 1000Л
console.log(+user
) , то выводит 1000Л
Л
А
IK
ДD
A
А
Л