It's not always ideal to have methods that can be overridden. By default, properties that are assigned to an object can be reassigned. We need another option to add functions to an object so they won't be changed.
In this recipe, we'll see how to add non-writable properties to an object with Object.defineProperty.