Function Help


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


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);


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

var statevariable = function(parameter) {
    var statevariable = parameter * 5;
call the variable

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


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