GETTERS & SETTERS

Customer Account

Update your account details. Each change is checked by a JavaScript setter before it is saved.

01 / EDIT

Update account

Change one or more fields, then select Save Changes.

At least 3 characters; letters and spaces only.

Between $0 and $1,000,000.

02 / CURRENT ACCOUNT

Account overview

These values are read from the object's getters.

Available balance$500.00Demo account · no real funds
Account holder
bob
Account type
Savings
Account status
Active
Chapter 18 practice

The three editable fields each use a getter and setter. Invalid entries are rejected without replacing the last accepted value. Try changing the validation rules in js/script.js to test what happens.