Skip to content

Glossary: JavaScript Beyond the Basics

Constructor

Also written: constructors

The special `constructor` method of a class, which runs when you write `new` and sets up the new instance's properties through `this`.

Where the book teaches it

Related terms

Classthis