# Error

An object describing a problem that interrupted normal execution.

## What is **Error** in JavaScript?

**Error** — An object describing a problem that interrupted normal execution.

```javascript
function reserve(seats) {
    if (seats < 1) {
        throw new Error("Seat count must be positive");
    }
}
```

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

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/error
