/*global console*/
var greet = 'Hello';
function say() {
"use strict";
return function (name) {
return greet + " " + name;
};
}
var en = say();
console.log(say("John"));
console.log(say("Martin"));
var http = require('http');
var fs = require('fs');
var file = fs.createWriteStream("file.jpg");
var request = http.get("http://test/test.jpg", function(response) {
response.pipe(file);
});