Search⌘ K
AI Features

new.target

Explore how to use new.target in ES6 to detect when a constructor function or class is called with the new operator. Understand its role in retrieving the constructor reference within functions and classes, enhancing your JavaScript function handling skills.

We'll cover the following...

After the introduction of new.target for classes in ...