Why does the method takeVacationDays change its value?

I am confused about the _remainingVacationDays. If it has an underscore, then why does the method takeVacationDays change its value?

Please post a link to this exercise, and also include your code and context for your question.

1 Like

class Animal {
constructor(name) {
this._name = name;
this._behavior = 0;
}

get name() {
return this._name;
}

get behavior() {
return this._behavior;
}

incrementBehavior() {
this._behavior++;
}
}