Hi guys. I have a very simple question for someone, but Im confused with it.
Dont understand the logic, why do we need to use a func inside another func and call it from the inside ? What are the benefits ?
const increment = (function() {
“use strict”;
return function increment(number, value) {
return number + value;
};
})();