What does the following code do?
var http = require('http');
var fs = require('fs');
var file = fs.createWriteStream("file.png");
var request = http.get("http://path/to/file.png",
function(response) { response.pipe(file); });
Correct Answer: It creates an HTTP GET request and pipes its response into a writeable file stream.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Node.js MCQ Questions