Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

simple nodejs server

// One Line ES6
require('http').createServer((req, res) => res.end(`You're in: ${req.url}`)).listen(8080, err => err ? console.log : console.log(`Listening on port 8080`))
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #simple #nodejs #server
ADD COMMENT
Topic
Name
1+9 =