Why we pass "app" in http.createServer(app) as we can also pass
e.g :
var app = require('./app')const http = require('http')const port = 3500 || process.env.PORTvar server = http.createServer(app) //here we pass app
in other code we pass some different argument such as this
https.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.write('Hello World!'); res.end();}).listen(port)