CodeBeginner

Module

Also known as modules · ES module · JavaScript module

A unit of code with its own scope that can explicitly export values and import values from other modules.

In the real world

export const double = n => n * 2; can be imported by another JavaScript module.

Related

Go a little deeper