6. Don't repeat yourself // Syntax error


Not sure what i am missing, syntax error.

var orangeCost = function(priceOrange); {
var orangeAmount = priceOrange*5;


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:


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


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