Intermediate JavaScript
Q90 / 100

What is the TC39 decorators proposal (Stage 3)?

Correct! Well done.

Incorrect.

The correct answer is B) A standard way to add metadata and modify class elements using @decorator syntax, standardized after years of TypeScript usage

B

Correct Answer

A standard way to add metadata and modify class elements using @decorator syntax, standardized after years of TypeScript usage

Explanation

@logged class Foo { @bound onClick() {} } — TC39 stage 3 decorators work differently from TypeScript decorators (legacy). They receive descriptor objects, not constructor/prototype.

Progress
90/100