# Local Scope

A function or block scope where declarations are available only inside that area.

## What is **Local Scope** in JavaScript?

**Local Scope** — A function or block scope where declarations are available only inside that area.

```javascript
const taxRate = 0.08;

function addTax(price) {
    const tax = price * taxRate;
    return price + tax;
}
```

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

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/local-scope
