SOS myProblem! 5/13


#1

VAT IZ MI PROBLM???
var orangeCost = function (price*5)
{
console.log ("That'll be " + price);
};
orangeCost(3);


#3

A parameter is a variable but this:

function (price*5)
price*5

computes a value. And the function is expected to print a number. Also shouldn't the input be 5?


#4

Here's the correct code snippet:



var orangeCost = function(cost) {
    console.log(cost * 5);
};

orangeCost(5);

If you still don't understand, just put a reply.