What value is obtained when executing the following code?
function sumIf(condition, a, b) {
return condition(a, b) ? a + b : 0;
}
console.log(sumIf((x, y) => x > y, 5, 2));
What value is obtained when executing the following code?
function sumIf(condition, a, b) {
return condition(a, b) ? a + b : 0;
}
console.log(sumIf((x, y) => x > y, 5, 2));