var pet = function(name) { var getName = function() { return name; } console.log(111); return getName(); } myPet = pet('jimmy');