Created
August 11, 2020 15:44
-
-
Save JairoDuarte/5715c6a9d1d011e7299527620b035982 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
//create a server object: | |
http.createServer(function (req, res) { | |
res.write('Hello World!'); //write a response to the client | |
res.end(); //end the response | |
}).listen(8080); //the server object listens on port 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment