class MyClass {
constructor () {
this._value = 1
}
increase (e) {
this.value = this.value + 1;
}
get value () {return this._value;}
set scale(value) {
this._value = value;
}
}
does this not work? I want increase()
to trigger both the getter and setter (since its getting and setting the value)