I need to change the field _value of x, but through the variable kot. How can I do that ?
let x = {
_value: "stas",
set value(val) {
this._value = val;
},
get value() {
return this._value;
}
};
let kot = {
__proto__: x,
name: 'kotiki'
};
console.log(kot);