Javascript has the syntax
class C { get [prop]() { ... } set [prop](v) { ... } }
for getting or setting arbitrary properties.
is