JavaScript Video Tutorial – Object Properties Using Getters and Setters




In this video we show you an example of how to create custom properties by using Object.defineProperty with its getter and setter functions.

For a transcription of this video and even more content on engineering and technology, visit us at http://www.toptal.com/videos.

Original source


7 responses to “JavaScript Video Tutorial – Object Properties Using Getters and Setters”

  1. Thanks for explaining the "why" in this tutorial. Many tutorials will explain the how, but if it's not clear why something is being done, it's hard to see the need for it. Good explanation and great example of how to use getters and setters.

Leave a Reply