# Constructor

The special class method that initializes a newly created JavaScript object.

## What is **Constructor** in JavaScript?

**Constructor** — The special class method that initializes a newly created JavaScript object.

```javascript
class Book {
    constructor(title) {
        this.title = title;
    }
}

const guide = new Book("JavaScript");
```

Level: Journeyman · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/journeyman)

Updated: September 27, 2026

## In other subjects

- [Constructor in C#](https://www.ask-codey.com/glossary/constructor-c-sharp)
- [Constructor in Java](https://www.ask-codey.com/glossary/constructor)
- [Constructor in OOP](https://www.ask-codey.com/glossary/constructor-oop)

Source: https://www.ask-codey.com/glossary/constructor-javascript
