Hi Vikas and thanks for this article!
For people that are on the clock, you can even create a server in one terse line.
require("http").createServer((_, r) => r.end("Node.js")).listen(8080);
You can even fire a Node.js server in a terminal.
$ node -e "require('http').createServer((_, r) => r.end('Node.js')).listen(8080)"
This is not very interesting for most applications, but this is a cool trick to know!
thanks for sharing.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Vikas and thanks for this article!
For people that are on the clock, you can even create a server in one terse line.
You can even fire a Node.js server in a terminal.
This is not very interesting for most applications, but this is a cool trick to know!
thanks for sharing.