// 1. const add = () => { let counter = 0; const addNum = (a, b) => { const result = a + b; counter++; console.log(`The result is: ${result}`); console.log(`Fn is called: ${counter}`); } return addNum; } const checkFn = add(); checkFn(3, 4); checkFn(3, 4); // Third task. The value is stored.