What value is obtained when executing the following code?
function sum(a) {
return function (b) {
return a + b;
};
}
const sum5 = sum(5);
console.log(sum5(3));
What value is obtained when executing the following code?
function sum(a) {
return function (b) {
return a + b;
};
}
const sum5 = sum(5);
console.log(sum5(3));