Properties
Properties can be configured in a variety of ways:
- Properties can have default values
- Dynamically computed properties (getters) are defined as functions with the
getkeyword - Static properties use the
statickeyword
Legacy private properties
Prior to # private property support, properties were made "private" by convention: private properties and methods were prefixed with _.
Contents