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”
where this used?
Great video!!
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.
Great Explanation!!
Thanks for a video by the way you can you use get,set option inside object which was created literraly.
Very clear and concise.
Too many "actually"es , but overall very helpful video