I have an object and 3 methods, now my code to execute it looks like this:
var cmpAmount = 50,
addLessAmount = 6,
addMoreAmount = 14;
priceChanger.changeSmallPrice(cmpAmount, addLessAmount, addMoreAmount);
priceChanger.changeBigPrice(cmpAmount, addLessAmount, addMoreAmount);
priceChanger.changeTooltipPrice(cmpAmount, addLessAmount, addMoreAmount);
so, if arguments are the same how to execute it three with sending them the parameters. I mean how to change my code to make it less.
priceChanger.changeAllPrices?