Multiple ChoiceIntermediate 30s
Decorator Pattern
Choose the best answer for: decorator in JS
Options
- 1A decorator is class syntax only and needs the @ symbol
- 2A decorator is a CSS property used for styling elements
- 3A decorator replaces the original object entirely with a new one
- 4A decorator wraps an object to add behavior dynamically
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.