var http = require('http');

var server = http.createServer((req,res)=>{
  console.log(req.method + ': ' + req.url);
  res.writeHead(200,{'Content-Type':'text/html'});
  // res.end('<h1>Hello world!</h1>');
  res.write('<h1>Hello world!!</h1>');
  res.write('<h1>Hello world!!!</h1>');
  res.end('<h2>test title<h2>');
  res.end('<h2>test title3333<h2>');
});

server.listen(8080);
console.log('server is running...');