I cloned an Express.js repo containing an example folder with various uses for Express.js. I opened the Hello World example, and the code started on the next line
var express = require('../../');
I understand the rest of the code in this file, but does the line above go along my head? I know that the function is requireused to include the JS module in your project, and one should pass the module name as an argument to the function require(), but in the case of the above statement we pass the directory, what will it do?
source
share