Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var http = require('http');
  2. http.createServer(function (req, res) {
  3.   res.writeHead(200, {'Content-Type': 'text/plain'});
  4.   res.end('Hello Node.JS!');
  5. }).listen(8080);
  6. console.log('Server running at http://localhost:8080/');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement