const make=(k)=>{let c=0;return ()=>{c+=k;return c;};};const step=make(2);console.log(step()+step()+step());