JS Don't Repeat Yourself (D.R.Y)


#1

var orangeCost = function(number) {
var val = number * 5;
console.log(val);
orangeCos(25);
};
it says: Ops, tente outra vez.
It looks like you didn't call the orangeCost function. Make sure to call it and pass it a price!
help, please


#2

the function call:

orangeCos(25);

should be outside your function (after };), and you misspelled Cost in your function call


#3

thank u, stetim94. I'll try 2 b more attentive :blush: