Please help, problem with code


#1



Replace this line with your code.


#2

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


#3

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


#4

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


#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:


#6

Thanks. It worked out well :slight_smile:


#7

You're welcome :slight_smile: