I\'m new to node.js. i have two files. they are index.js and db.js
node.js
index.js
db.js
my index.js is
var connection =
node.js treats every file as a module. so to include any source file into another you need to export it at the source end and import it using require at the importing file.