something = function() {} something.name; function first(params) { var info = params.info; if (something.name === undefine) something.name = sender(info); console.log(something.name) }