Question: what is getter and setter properties?
Answer: Getters and setters. Accessor properties are represented by “getter” and “setter” methods. In an object literal they are denoted by get and set : let obj = { get propName ( ) { // getter, the code executed on getting obj. propName } , set propName ( value ) { // setter, the code executed on setting obj.