Node.js From Beginning Part #3 - Modules

Опубликовано: 12 Июль 2026
на канале: CodeWorkr
940
54

In the third episode of Node.js from Beginning we will learn all about modules! By the end of this video, we want to both understand how to import/export modules inside Node.js as well as why modules are useful to us and what are the ways we can modularize our code.

In order to do that we're going to work through an example in which we're going to start off by not using any modules whatsoever and simply work on its functionality. Once we've finished writing an example and it works we'll focus on creating multiple modules out of it and see how that improves things for the better.

Near the end of this video we're going to actually see how do we have access to keywords such as module, exports, require and we'll learn that in fact Node.js, behind the scene, actually wraps up our code with a special function that exposes those keywords to us.

Enjoying my videos and want to buy me a coffee?
https://www.paypal.me/CodeWorkr