Where is the Bug :( ? Exercise 6. Please help me. Thanks


#1


var orangeCoast = function (price) {
    var orangeCoast = price * 5;
    console.log(orangeCoast);
};
orangeCoast(5);


#2

i wouldn't store the result of the multiplying in the function, you can name this variable anything you like, total for all you like, and that is what you should log to the console

store the result in total:

var total = price * 5;
// log total to the console

Also, the function should be orangeCost (not coast)


#3

you defined orangeCoast 2 times
and instruction said orangeCoast is function
not understood ? my bad
btw working code :


#4

Now I understand it and see my mistake :slight_smile: Thanks for Help :slight_smile:


#5