DEV Community

loading...

Discussion on: PHP vs Node.js

Collapse
tanmaymishu profile image
Tanmay Das

Which is simpler than that of NodeJS ;-)

const http = require('http');

const requestListener = ...

const server = http.createServer(requestListener);
server.listen(8080);