Why is the get function called in a loop when reading accessor properties?

clipboard.png

clipboard.png

Mar.22,2021

return this._year


because you return year , then the get () method is called, and then return , it falls into an endless loop

.
Menu