var varName = 3, number = function(){return varName}; alert( number() ); varName = 100; alert( number() );