My function isn't working


#1


https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/1/1?curriculum_id=506324b3a7dffd00020bf661#


It says my function doesn't return 25 when it does.


var orangeCost = function (price) {
    console.log("Five oranges are" + " " + 5*price + " " + "dollars");
    };
    orangeCost("5")


#2

here:

orangeCost("5")

why a string?

only log the price, without additional string


#3

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