¿Cuál es el resultado del siguiente código?
function hacerOperacion(x, operacion) {
function suma(y) {
return x + y;
}
function resta(y) {
return x - y;
}
if (operacion === "suma") {
return suma;
}
return resta;
}
const sumarCinco = hacerOperacion(5, "suma");
console.log(sumarCinco(3));