Click in order · JavaScript and TypeScript course · Module 7: Advanced TypeScript
Decorator Evaluation Order
Click in the correct order: when a class has multiple decorators (@A @B @C class X), in what order do the stages proceed?
Items to click
- Apply decorator A
- Apply decorator C (bottom-up)
- Factory A evaluation (top)
- Factory B evaluation (middle)
- Factory C evaluation (bottom)
- Apply decorator B
You can check the correct answer by solving this task in the CodeWorlds game.