Understanding nodejs module exports and require

Nodejs allows you to write mod­u­lar code by divid­ing your busi­ness logic into sin­gle pur­pose files called mod­ules. When you are new to nodejs, it can some­times be dif­fi­cult to under­stand what is happening…