Introduction
Available in all evergreen browsers since 2018, ES Modules are a great way to avoid having to run your code through build tools if you don't need to do anything too complex, and don't require a task runner to minify/compress your code.
In this guide, we'll walk through implementing a modular approach to a common JavaScript scenario: mobile menus. We'll cover writing classes, importing and exporting modules, and getting them running in your browser.