Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

Practice Getters and Setters in JavaScript Course (How To)

via Treehouse

Overview

Practice writing and using getters and setters in JavaScript classes.

What you'll learn

  • Objects
  • Classes
  • Getter methods
  • Setter methods

Syllabus

Practicing Getters and Setters

Practice working with getters and setters

Chevron 5 steps
  • Welcome to Practicing Getters and Setters

    0:40

  • Practice Creating and Accessing a Getter method

    2 objectives

  • instruction

    Creating a Getter Solution

  • Practice Creating and Calling a Setter Method

    2 objectives

  • instruction

    Creating a Setter Method Solution

Reviews

Start your review of Practice Getters and Setters in JavaScript Course (How To)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.