As I am new to Node.js
I am looking for some info, coding some testing stuff and also reading some other people's code.
I've seen that creating/requiring(using) modules is typical in Node.js
. I've seen different ways of defining "public" methods and function inside modules and both seem to work the same way too:
module.exports
this.prototype
Is there a notable difference by using one or another? Or are just different ways of doing the same thing? Is any of these two better, or it depends on the context?