WDD 330: Web Frontend Development II

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

  1. Read: 📃 Modules, Introduction - javascript.info
  2. Reference: 📑 Modules - MDN

Activity Instructions

  1. Follow along and complete the 🎦 JavaScript ES6 Modules tutorial presented by Web Dev Simplified