#6 Strict Validation...if you're having trouble with it


#1

The platform is looking for an === 25, and running twice if it doesn't get it? Took me a while to "debug" this one. Can't get fancy on it :wink:

//Total price of buying five oranges.
var orangeCost = function (price) {
    var totalPrice = price * 5;
    console.log ("The cost of oranges today is " + totalPrice);
};
orangeCost(5);

The platform will only validate if the output is totalPrice (e.g. 25)