Javascript - Module Modules Introduction

Introduction

Modules are JavaScript files that are loaded into JavaScript code from other files.

Modules always run in strict mode

The value of this is undefined and the variables created at the top level are not present in the shared global scope.

Anything that you need from inside the module has to be explicitly exported to be able to use them outside the module.