DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
TypeScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
TypeScript
What's the relationship between the decorator DESIGN PATTERN and decorator SYNTAX in TypeScript/JavaScript?
A
They are completely unrelated concepts that happen to share a name
B
Decorator syntax is a newer, more ergonomic, standardized way to express the same kind of transformation the decorator design pattern always allowed via plain functions
C
The design pattern was invented AFTER decorator syntax
D
Decorator syntax replaces the need for classes entirely
Check Answer