Advertisement
shor7cut

Contoh NODE.JS

Aug 31st, 2015
226
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/html'});
  4.   res.end('<h1>NODE JS SHOR7CUT</h1>');
  5. }).listen(1337, '127.0.0.1');
  6. console.log('Server berjalan melalui http://127.0.0.1:1337/');
Advertisement
RAW Paste Data Copied
Advertisement