function foo() { var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2; return function (a) { function a() {} }(a); }