JavaScript Getters and Setters

Getters and setters allow you to get and set properties via methods.

This example uses a lang property to set the value of the language property.