All challenges
Multiple ChoiceIntermediate 30s

Decorator Pattern

Choose the best answer for: decorator in JS
Options
  1. 1A decorator is class syntax only and needs the @ symbol
  2. 2A decorator is a CSS property used for styling elements
  3. 3A decorator replaces the original object entirely with a new one
  4. 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.

Play this in a 3-minute battle