Course contentsShow
JavaScript
Lesson 659 of 2,72316. Object Methods and PatternsPro lesson

Defining Getters with the 'get' Keyword

Use the 'get' keyword in object literals to create properties that execute a function when accessed.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.