I dont understand how to use the get and set function in es6 javascript

A post was merged into an existing topic: I dont understand the get and set function in es6 javascript