Help me with 6 please!


I put in:

var orangeCost = function(price) {
    var val = price*5
    console.log("You have " + val + " oranges!")

Which prints out

You have 30 oranges!
You have 25 oranges!

Where does the 25 come from? Is there something wrong with my code?


Test function running the code with orangeCost(5) and comparing the output to the expected output. The problem is that your output message is too descriptive the test function really expects just the pure number.