Classes in JavaScript
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- easy
- Pro
Someone coming from Java asks how classes work in JavaScript. Explain how you'd write a bank account class with an owner, a balance and a deposit method, and then a savings account that adds interest.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.