Yashotantra Academy
AI · Blockchain · Cloud · Data
Dark mode active
Learn
Tracks
ABCD
Certification
More
▾
Dark mode active
Learn
Tracks
ABCD
Certification
Study
Theory
Code Lab
Build
Solidity IDE
Staking Sandbox
Simulation
Reference
Wallets
Gas Fees
Explorers
← Code Lab
JavaScript
0/50 solved · 0%
All lessons
lesson
code
OOP · medium
23. Classes
Constructor and methods.
Write `class Account { constructor(owner) ... deposit(n) ... }` tracking `balance` starting at 0.
Required in your answer:
class Account
constructor
Reveal solution
Run & check
Reset
Runs in a sandboxed worker
class Account { // TODO }
Output appears here.
← 22. Objects with methods
24. extends & super →