ES Modules: The Cartoon

I really loved the way Lin Clark contrasts the explicit binding of variables between files of code using modules vs. implicit binding where you simply expect that a given variable will be in a certain place within the global scope (like jQuery’s $ shortcut) and how it makes modules not just a better way of connecting your software together but also a way of protecting your code from mistakes.

ES modules: A cartoon deep-dive – Mozilla Hacks – the Web developer blog