function create(i){ let value=0; function ince(){ value+=i; console.log(value); const message ="current value is "+value; return function me(){ console.log(message); } } return ince; } const inc = create(1); const log = inc(); //1 log(); //current value is 1 inc(); //2 log(); //current value is 1 const log1=inc(); // 3 inc() //4 log1() //current value is 3