Simple play icon Course
Skills Expanded

Structuring JavaScript Code

by Dan Wahlin

This course walks through several key patterns that can be used to encapsulate and modularize JavaScript code. Throughout the course you’ll learn how closures and other techniques can be used to better organize your JavaScript code and make it easier to re-use and maintain in HTML5 applications.

What you'll learn

With the rise of HTML5 more and more JavaScript code is being included in applications to leverage canvas, geolocation, local storage, and other key APIs. This course walks through several patterns that can be used to structure code in a way that’s more re-useable, more maintainable, and less susceptible to naming collisions. Learn about patterns such as the Revealing Module and Revealing Prototype patterns and see how they can be used to convert function spaghetti code into structured code that encapsulates variables and functions.

About the author

Dan Wahlin founded Wahlin Consulting, which provides consulting and training services on JavaScript, Angular, Node.js, C#, ASP.NET MVC, Web API, Docker, and Kubernetes. He is a Google GDE (and former Microsoft MVP and Regional Director), Docker Captain, and speaks at conferences and user groups around the world. Dan is active on Twitter (@DanWahlin), blogs at https://blog.codewithdan.com, and adds a lot of code to his Github repos at https://github.com/danwahlin.

Ready to upskill? Get started