I keep getting a syntax error, please help!


#1

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

i also tried:
var orangeCost = function(price); {
var val = price*5
console.log(val);
};
orangeCost(5);


#2

No semicolon after function().


#3

Why do you make there a ; after var orangeCost = function(price);
Remove it. And Done! :smile:

@haxor789 was faster ;D


#4

Thank you very much!


#5

Thank you, i was looking at it for ages.