6. Don't repeat yourself // Syntax error


#1

Not sure what i am missing, syntax error.

var orangeCost = function(priceOrange); {
var orangeAmount = priceOrange*5;
console.log(orangeAmount);
};
orangeCost("5");

#2

Hey buddy when you define your function you call it priceOrange and then you try call your function with orangeCost

change that and your code should work :slight_smile:


#3

I got it, it was the ':' i used when defining the function :slight_smile:


#4

haha yeah was just about to say that :smile: Looked at your code wrong