var add = (function () {
var counter = 0;
return function () {counter += 1; return counter}
})();
add();
add();
add();
and significance of “()” after ‘add’ function definition
this is the same example as you have given in the video but implementation is confusing