function addCount(){ var count = 0; console.log('=====>1:',this); return function(){ count += 1; console.log('=====>2:',this); } } addCount()();