Course contentsShow
JavaScript
Lesson 741 of 2,72317. Prototypes and InheritancePro lesson

Guarding Against Missing 'new'

Use 'new.target' inside constructors to detect and handle calls made without the 'new' keyword.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.