ES Modules Flashcards

1
Q

What is an ES6 module and how is it different from a CommonJS module?

A
ES6 modules are native to JavaScript and use the import and export keywords. 
CommonJS uses the require function and the export method of the module object. This is used in Node.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly