03 - Requiring_Directory

// What if we want to require a directory?
// 
// Let's say we are inside parentDir/Director1/app.js file and
// we want to use files in parentDir/Directory2.
// 
// For this, we will create one index.js inside Directory2 and 
// inside index.js file we "require" all the other 
// files which are present in Directory2
// 
// once this is done, in parentDir/Directory1/app.js file, 
// we will just "require" Directory2 and we will get 
// access to all the files in Directory2 with this.
    
        const directory2 = require('./Directory2');