Exercise 6 What's going on!


Hi there! I have a problem with exercise 6, at the java course, it keeps saying that my code it's not correct. My program goes exactly as follows:

1 var costoNaranjas = function(precio) {precio*5;};
2 costoNaranjas (5)

but the site keeps saying that the result it's not 25, as it's supposed to be.

please tell me where i'm wrong!


Use return inside your function.


Adding to @cadecodes point. You have to return costoNaranJas


Not quite, costoNaranjas is a function, what you want to return is precio*5


Sorry, i thought that was the return statement, sorry the spanish+formatting confused me.