Lesson overview · Free interview practice
Decorators
Master class and method decorators.
Topics in the full lesson
- Introduction to Decorators
- Decorator Factories
- Class Decorators
- Method Decorators
- Property Decorators
- Parameter Decorators
- Metadata Reflection API
- Decorators in Practice
- Standard Decorators (TypeScript 5.0+, Stage 3 proposal)
- Best Practices
- Exercises
Practice Problems
Work through a question before revealing its explanation. These questions and answers are free; Premium adds the full lesson walkthrough, examples and implementation detail.
Completion marks record your own progress, not an automatically checked result. The task type does not determine whether it is optional.
TheoryHard
Class Decorators vs Method Decorators
TheoryHard
Decorators: TC39 Stage 3 vs Legacy Experimental
TheoryHard
The Metadata Reflection API: `reflect-metadata` + Modern Successor
TheoryHard
Dependency Injection with Decorators
CodingHard
Method Decorators: Wrapping Behavior
Implement and check your solution in the stated environment before revealing the answer.
Explore the full Decorators material
Premium includes the complete lessons and implementation references. Free practice questions remain available without a subscription.
All course tracks & premium content
From basics to advanced masterclasses
Built for JS/TS developers like you
Real-world tips & common pitfalls