Advanced JavaScript
Q95 / 100

What is the Temporal Dead Zone for let/const class fields?

Correct! Well done.

Incorrect.

The correct answer is B) When a derived class constructor calls methods before super(), accessing class fields defined in the base triggers TDZ since fields are initialized by super()

B

Correct Answer

When a derived class constructor calls methods before super(), accessing class fields defined in the base triggers TDZ since fields are initialized by super()

Explanation

Calling a base method in a derived constructor before super() that accesses the base's fields risks TDZ errors because field initialization happens as part of super().

Progress
95/100