Modules
Overview
A module is a JavaScript file. Module functionality was developed in JavaScript programming to support the idea of a single responsibility principle. Of course, a module can contain a lot of things but the concept is to break down a program into more fundamental pieces for portability and maintainability.
"Modules are a way to structure and organize your JavaScript, and it gives us the ability to
share
functionality and data across multiple files and projects ... They have their own scope,
similar to how a function has scope. They can hold anything (functionality, data, config)" -
wesbos.com
Prepare
- Read: 📃 Modules, Introduction - javascript.info
- Reference: 📑 Modules - MDN
Activity Instructions
- Follow along and complete the 🎦 JavaScript ES6 Modules tutorial presented by Web Dev Simplified