# Global Scope

The outermost scope, whose declarations may be available across a script or module.

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

**Global Scope** — The outermost scope, whose declarations may be available across a script or module.

```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/global-scope
