Studying Module pattern in javascript and see below.. Question.. why do you need return inside of return? what purpose does that serve?
var ex = function(){
return {
get: function(name){
console.log("helloe " + name);
return {
hostname: 'node1 '
}
}
}
}