Web platform features explorer

Accessor methods

Discouraged
Tags: javascript

The __defineGetter__() and __defineSetter__() methods of objects bind a function to a property, which is called on setting or reading the property.

Learning resources on MDN

Browser support