app01.js
342 Bytes
"use strict"
var http = require('http');
var server = http.createServer(function(req, res) {
res.writeHeader(200, {"Content-Type": "text/plain"});
res.write("I changed port 3000 to 2500! I don't have any problem hahaha");
res.end();
});
server.listen(2500, function() {
console.log("Sever listeining on http://localhost:2500");
});