JavaScript Modules

Using Import and Export statements

Hey there. Happy Monday! Hope you all had a good weekend. I have one article for you today.

Understanding JavaScript Modules

JavaScript used to be used primarily for making falling snowflakes and cursor trails on your websites, but now entire web applications are built with it. This has led to an increased need for code organization and modular programming. This article goes into why modules are needed, examples of code with and without modules, and how to use import/export statements.

This article marks the completion of the How to Code in JavaScript series I’ve been writing on-and-off for DigitalOcean over the last three years. It covers topics as fundamental as strings and math to more intermediate/advanced topics like prototypes, classes, generators, scope, promises and the event loop. So you probably won’t see articles of this type from me anymore. (Haven’t decided what to do next yet!)

Have a great week!