Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

server starter code in js

const http = require('http');

const server = http.createServer((req, res) => {
    res.end('This is my server response!');
});

server.listen(process.env.PORT || 3000);
Source by openclassrooms.com #
 
PREVIOUS NEXT
Tagged: #server #starter #code #js
ADD COMMENT
Topic
Name
8+4 =