(D.R.Y.) function help


Need a little bit of help with this. Not sure why it's throwing me an Unexpected token error, but I am also a beginner. What exactly am I doing wrong? Am I headed in the right direction or am I completely missing something. Thanks.


var orangeCost = price(4) {
    var cost = price * 5


you assign a function like this:

var x = function(param) {


now look at yours


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.