# Method

A function that belongs to a class, called on an object with a dot.

## What is **Method** in JavaScript?

**Method** — A function that belongs to a class, called on an object with a dot.

```javascript
const order = {
    quantity: 2,
    describe() {
        return `${this.quantity} items`;
    }
};
```

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

Updated: September 27, 2026

## In other subjects

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

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