Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Object.defineProperty()
This example uses the defineProperty() method to add a getter and a setter.