Skip to content
JavaScript·Intermediate·Conceptual·1 min read

What is this inside a class static method?

Short interview answer

A static method is called on the class constructor, so an ordinary member call binds this to that constructor or the subclass used as the receiver.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to The this keyword

Related questions