Accessor properties: Getters

Syntax

  get propName() {
    // getter, the code executed on getting obj.propName
  }

Accessor properties: Getters — Structure map

Clickable & Draggable!

Accessor properties: Getters — Related pages: