Upwork All skils Test Answers >> Upwork answers of Node.js >> Complete Node.js Quiz Answers
Question: 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); });
The Answer of this quiz is ' It creates an HTTP GET request and pipes its response into a writeable file stream. '
The Answer of this quiz is ' It creates an HTTP GET request and pipes its response into a writeable file stream. '
No comments:
Post a Comment