¿Qué valor se obtiene al ejecutar el siguiente código?
function sumarSi(condicion, a, b) {
return condicion(a, b) ? a + b : 0;
}
console.log(sumarSi((x, y) => x > y, 5, 2));
¿Qué valor se obtiene al ejecutar el siguiente código?
function sumarSi(condicion, a, b) {
return condicion(a, b) ? a + b : 0;
}
console.log(sumarSi((x, y) => x > y, 5, 2));