Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

What does the following code do? var fs = require('fs'); var http = require('http'); var file = fs.createWriteStream("/tmp/file.png"); var req = http.get("http://example.com/file.png",function(resp){ resp.pipe(file); };

It creates a GET request and pipes its response into a writeable file stream.
It throws an Error
It creates an HTTP server that responds an image file for each requests
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon