There is no difference. http.createServer() only does one thing: it calls http.Server() internally and returns the resulting instance.
There is no difference. http.createServer() only does one thing: it calls http.Server() internally and returns the resulting instance.