Learning Node.js Part 2 – “module.exports” and “exports”
In my previous post, I explained the basics of loading files/modules in Node.js. In this post, I’ll explain how to work with the return data. Specifically, I will describe what you get when you call something like var math = require(‘./math’). First, let’s talk about how to return data in a module. There are two… Read More »