Working with JavaScript Modules

When writing web applications, JavaScript code can rapidly become difficult to maintain and understand. In this course, you will learn how to use modules to break up your code into manageable pieces that are easier to work with.
Course info
Level
Beginner
Updated
Oct 8, 2019
Duration
46m
Table of contents
Description
Course info
Level
Beginner
Updated
Oct 8, 2019
Duration
46m
Description

At the core of JavaScript is a thorough knowledge of Modules. In this course, Working with JavaScript Modules, you’ll learn how to break your code out into modules in a logical way and use those modules in your application. First, you’ll learn what modules are and why you should use them. Next, you’ll explore how to import and export code from modules. Finally, you’ll discover how to use those modules in a real-world application. When you’re finished with this course, you’ll have a foundational knowledge of modules that will help you as you move forward to build easier to maintain JavaScript applications. Software required: JavaScript.

About the author
About the author

Jonathan is a Pluralsight Author, Technology Advisor, and Business Leader. As a member of the Chief Digital Advisory team at World Wide Technology, Jonathan is able to leverage his unique experiences and skills to drive digital transformation for his clients. As a dedicated developer community leader, Jonathan serves on the board of directors for the Kansas City Developers Conference, is a Microsoft MVP, and is a regular speaker and keynote presenter at conferences around the globe.

More from the author
RESTful Web Services with Node.js and Express
Intermediate
2h 3m
Jan 24, 2019
More courses by Jonathan Mills
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name's Jonathan Mills, and welcome to my course, Working with JavaScript Modules. Now I'm a technology adviser at Worldwide Technologies and a frequent speaker on JavaScript topics around the globe, and sometimes working with JavaScript can feel unwieldy or awkward, especially if you're doing it in just your HTML files or in a vanilla JavaScript application. And sometimes even outside of that our JavaScript can evolve into just a massive spaghetti code that's really gross and hard to deal with in all of our JavaScript files. Now in this course, we're going to talk about how to break that up a little bit and start breaking code into smaller, usable pieces using the new ES6 module syntax. In this course, we're going to talk about what modules are and why in the world we would even use them. We're going to talk about creating modules and then exporting individual pieces of that module out for the rest of your application. And once you're exporting code, now you're going to need to import that code, so we're going to talk about the import keyword and how to use that appropriately. We'll do all of this in the context of a real-world example so you can see the mechanics of it as we go. By the end of this course, you'll have put both import and export into practice and understand how to start breaking up your own applications into modules. Now before beginning this course, you should be familiar with JavaScript in general, but you won't need any framework knowledge, no React or Angular or anything like that yet. You will apply this to those, but you don't need to know those in order to understand modules. Now I hope you'll join me on this journey to learn about building reusable and maintainable JavaScript code with the Working with JavaScript Modules course, here at Pluralsight.