Accessor properties: Setters

Setters

Syntax

set propName(value) {
    // setter, the code executed on setting obj.propName = value
  }

Related concepts

Accessor properties: Setters — Structure map

Clickable & Draggable!

Accessor properties: Setters — Related pages: