Doubt in code


Oops, try again. It looks like you didn't define orangeCost.

Replace this line with your code. 
var orange= function orangeCost(price)
    var cost=price*5 


what is my mistake in this code?


take a look at 3. function syntax, your function syntax is slightly off


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