# ES Module

*noun*

say it: **“EE-ESS MOJ-ool”** **/ˌiːˈɛs ˈmɒdʒuːl/**

A JavaScript file that shares only what it marks with export, and brings in other files' code with import.

## What is **ES Module** in JavaScript?

**ES Module** — A JavaScript file using import and export to declare dependencies and public values.

```javascript
export function total(price, quantity) {
    return price * quantity;
}
```

## In a sentence

- “I moved the unit conversions into their own **ES module**, convert.js, and imported them where I need them.”

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/es-module
