My function returns 25. In the console I can see like the result 25,and the names of vars and function is the same demanded by the exercise... but don't let me continue. Haw can I continue?

¡Uy! Probá otra vez. Tu función debería haber sido igual a 25, porque es el resultado de comprar 5 naranjas a 5 dólares cada una. Pero el resultado no es 25

var costoNaranjas = function (precio) {
    var cantidad = 5
    console.log(cantidad * precio);


Did you try without a variable?

console.log(5 * precio);

Do the instructions say to log, or to return?


Try ending this line with semi-colon


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.