Check out a free preview of the full Organizing JavaScript Functionality course:
The "Refactoring Modules" Lesson is part of the full, Organizing JavaScript Functionality course featured in this preview video. Here's what you'd learn in this lesson:

The easiest place for the code to be is not always the right place for the code to be. Now that all three modules are created, Kyle wants to simplify the functionality of each module by refactoring the code. The carousel module handles all click events and the details module is passed the ID of the object to show.

Get Unlimited Access Now