UNPKG
jchatapp
Version:
latest (1.0.0)
1.0.0
Trying to lear node
jchatapp
/
app.js
9 lines
(6 loc)
•
250 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
var
http =
require
(
"http"
); http.
createServer
(
function
(
request, response
){ response.
writeHead
(
200
, {
'Content-Type'
:
'text/plain'
}); response.
end
(
"helloworld\n"
); }).
listen
(
8081
);
console
.
log
(
"Server running at http://127.0.0.1:8081/"
);