Understanding ES6 Modules

added by JavaScript Kicks
9/24/2014 7:48:56 PM

105 Views

Modules are one of the most important features of any programming language. Sadly, JavaScript lacks this very basic feature. But, that doesn’t stop us from writing modular code. We have two important standards, namely CommonJS and Asynchronous Module Definition (AMD) which let developers use modules in JavaScript. But, the next JavaScript version, known as ECMAScript 6, brings modules into JavaScript officially. Yes, modules are first class citizens in ES6. So, this article will give you a basic overview of how modules are used in ES6. In the end we will also see how to transpile your ES6 modules to ES5 so that they work in today’s browsers.


0 comments