# Module script

*noun*

say it: **“MOJ-ool SKRIPT”** **/ˈmɒdʒuːl skrɪpt/**

A script tag with type="module", which lets a web page's JavaScript use import and export and keeps its variables out of the global scope.

## What is **Module script**?

**Module script** — A script processed as a JavaScript module with imports, strict mode, and module scoping.

```html
<script type="module" src="app.js"></script>
```

## In a sentence

- “app.js is a **module script**, so it can import the cart code from cart.js.”
- “Once I made the page's script a **module script**, the browser stopped saying Cannot use import statement outside a module.”

Level: Journeyman · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/module-script
