static set circlesMade(val) {
this._count = val;
};
What's the value of "this" here? static set circlesMade(val) {
this._count = val;
};
What's the value of "this" here?Something like:
Function Circle(){}
Circle.circlesMade(val) = function circlesMade(val){
this._count = val;
}That said, it could have also been written as:
static set circlesMade(val) {
Circle._count = val;
};
which means the exact same thing, and would maybe help people to understand that "_count" is just like a static class property on the Circle "class"