diff --git a/locale/en/about/index.md b/locale/en/about/index.md index e6ea76ad9625f..7d7ca39314001 100644 --- a/locale/en/about/index.md +++ b/locale/en/about/index.md @@ -11,14 +11,17 @@ connections can be handled concurrently. Upon each connection the callback is fired, but if there is no work to be done Node is sleeping. ```javascript -var http = require('http'); +const http = require('http'); -http.createServer(function (req, res) { - res.writeHead(200, {'Content-Type': 'text/plain'}); - res.end('Hello World\n'); -}).listen(1337, '127.0.0.1'); +const hostname = '127.0.0.1'; +const post = 1337; -console.log('Server running at http://127.0.0.1:1337/'); +http.createServer((req, res) => { + res.writeHead(200, { 'Content-Type': 'text/plain' }); + res.end('Hello World\n'); +}).listen(post, hostname, () => { + console.log(`Server running at http://${hostname}:${post}/`); +}); ``` This is in contrast to today's more common concurrency model where OS threads