The set syntax binds an object property to a function to be called when there is an attempt to set that property. It can also be used in classes.| MDN Web Docs
The handler.set() method is a trap for the [[Set]] object internal method, which is used by operations such as using property accessors to set a property's value.| MDN Web Docs