Question: what are getters and setters in javascript?
Answer: Property getters and setters. There are two kinds of object properties. ... It's accessor properties. They are essentially functions that execute on getting and setting a value, but look like regular properties to an external code.