Function Help


#1

:grinning: I am systemrunner59713! Welcome to Function Help!


#2

Is there anybody able to help me with Don't Repeat Yourself (D.R.Y)? Here is my code:

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

#3

I will share a basic outline for this lesson that I think will help you :smiley:

var statevariable = function(parameter) {
    var statevariable = parameter * 5;
    console.log(statevariable);
}
call the variable

If you need help filling in the gaps just let me know!


#4

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