- arrow functions
And the list goes on. HTML5 was released at the end of 2014. React was barely a thing and wasn't really on anyones radar. I tried to find npm download stats for 2014 but it just says 0.
Starting at the Beginning
So far I've learned that
<script type="module"> is a thing. I am used to using
ESM brings many advantages over "the old way".
thisno longer refers to the window. It is simply
- Each module has its own scope. We don't have to worry about polluting the global namespace anymore.
- Modules are executed in
strictmode by default. This enforces better coding practices like declaring variables before using them.
- Modules can import other modules.
- Modules are deferred by default. We no longer have to worry about blocking the page load.