Most Node.js beginners think these are interchangeable:
exports.sayHi = () => console.log("Hi");
Enter fullscreen mode
Exit fullscreen mode
module.exports = () => console.log("Hi");
Most Node.js beginners think these are interchangeable: exports.sayHi = () =>...
Most Node.js beginners think these are interchangeable:
exports.sayHi = () => console.log("Hi");
Enter fullscreen mode
Exit fullscreen mode
module.exports = () => console.log("Hi");

In my previous post, we learned that Node.js caches modules, so the same file isn't executed...

Node.js Modules Explained from Scratch — Why Do Modules Even Exist? If you've been writing Node.js...

This is Part 1 of a 3-part series where an uncle (30 years in backend systems, still uses a wired...

# Module Resolution Algorithm (Part 1): How Node.js Finds the Right Module In the previous article,...

From "why does Node.js even exist" all the way down to buffer allocation in native memory. ...

Everyone can type "use client". Almost nobody can say what survives the trip across it — and then...