JavaScript Modules

Updated: 06 December 2023

ECMA European Computer Manufacturers Association.
ECMAScript was created to standardize JavaScript.
ES6 is the 6th version of ECMAScript, published in 2015.

Synonyms:

  • ES2015
  • ECMAScript 2015
  • ECMAScript 6
  • ES6
  • ES 6th Edition

ES Module / ES6 Module / ‘JavaScript modules’ syntax

import
export

CommonJS Module syntax

require
exports

ES6 modules are only practical from Node.js v10 onwards (released in April 2018). All mainstream browsers and Node.js from mid 2018 support ES6 modules.

Leave a comment