All academies

Practice

Class Playground

Object-oriented TypeScript, one runnable concept at a time. Uncomment the error lines to see the compiler push back.

Parameter properties (public/private/readonly on constructor params) declare and assign fields in one step — the most idiomatic way to write TypeScript classes.

No errors
Loading...

Console output appears here. Press Run or just type — the code compiles automatically.