Please help, problem with code


Replace this line with your code.


Hey @vineetha.s,
It would be helpful, if you post your code, aswell as the error-message you get :slight_smile:


ar orangeCost = function(price)
var val= price * 5;
console.log("result of multiplication:" + val);


missed 'v' in "var". and the error is "It looks the orangeCost() doesn't return 25 when the cost of an orange is 5.


Yeah, cause you have to do exactly what's demanded.
Which means, just write console.log(val);

But just a hint for your further programming:
Giving a variable a "reserved" name, e.g. val, like in your case, isn't very clever.
Better give your variables "self-speaking" names.

Hope I could help you :slight_smile:


Thanks. It worked out well :slight_smile:


You're welcome :slight_smile: