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

Forgetting 'new': The Pitfall

See what happens when you call a constructor without 'new'—'this' binds incorrectly and no object is created.

This lesson is for subscribers

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