For Arcoder on Intro to Functions


#1

var orangeCost=function (price){
var val= (price * 5) <-- Number of oranges you buy is 5 so (price * 5)
console.log(val);
};

orangeCost(5)


#2

If you wanted to present a working code you could have done that by using the =comment=
like

var orangeCost=function (price){
     var val= (price * 5); // <-- Number of oranges you buy is 5 so (price * 5)
     console.log(val); 
};

orangeCost(5);