Browse By

Tag Archives: – Http Client and Http Collect

Below you can find my solutions to exercises “HTTP Client” and “HTTP Collect”.  In the first one you have to use the http core module. The code is simple enough:  var http = require(“http”); http.get(process.argv[2], function(response){ response.setEncoding(“utf8”) response.on(“data”, function(data){ console.log(data); }) }); And my – Make it modular

Recently I was playing with the exercises from the fantastic Below is my solution to “Make it modular” exercise. Of course you can improve it eg. with the use of Regex but I just wanted to keep it simple for the start.  So the