var store = {
disabled: false
};
//.....
var disable = function(){
store.disabled = true;
};
var updateState = function(limit){
if (limit > 10) {
showBigLabel();
} else {
showSmallLabel();
}
};
var sum = function(a, b){
var result = a + b;
console.log(result);
return result;
};
var updateSumTitle = fucntion(el, a, b){
el.querySelector(".result").textContent = a + b;
};
var isEnough = (() => {
var prevValue = 0;
return (val) => {
prevValue += val;
return prevValue > 10;
};
})();
var store = {
computedValue: 42
};
var compute = function(a, b){
store.computedValue = (store.computedValue + a) / b;
};
Is module right?