Exercise 6 What's going on!


#1

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!


#2

Use return inside your function.


#3

Adding to @cadecodes point. You have to return costoNaranJas


#4

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


#5

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