Node.js
You want to execute your JavaScript code? That you can do in Node.js, a JavaScript runtime environment.
Node.js support ECMAScript modules
In the lecture slides it says Node.js doesn't support ECMAScript modules. That is no longer the case, see:
https://nodejs.org/api/esm.html
However, Require JS and ECMAScript modules aren't 100% interchangeable, so it's probably best to be consistent and use only one of them, and I suspect many npm packages out there don't support ECMAScript modules to 100%, so the safest is probably to stick to using Require JS for now.
Lecture material
Recommended reading
- CommonJS Spec Wiki
- Introduction
- FAQ
- Requiring modules in Node.js: Everything you need to know
- Read this if you want to learn more about how modules work in Node.js (not required for this course).