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`.
Glossary: JavaScript Beyond the Basics
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`.