What value is obtained when executing the following code?
function sumWith(x) {
return function(y) {
return x + y;
};
}
const sumWith2 = sumWith(2);
console.log(sumWith2(3));
What value is obtained when executing the following code?
function sumWith(x) {
return function(y) {
return x + y;
};
}
const sumWith2 = sumWith(2);
console.log(sumWith2(3));