var totalPrice = (getOne() + getTwo()) * getThree();
Is there a reason why this doesn’t work? I’ve googled away but I don’t think I understand what I’m doing enough to use useful search terms. I tried without the brackets, just as a test, to see if it would at least multiply the last two functions and add the first. That didn’t even work so I guess the problem lays within the * operator.
Thanks,
Jo
EDIT: Thanks guys, it looks like I was missing an ‘s’ in one of my functions. Sorry, my mistake.
it depends on how you defined your functions: e.g.
Maybe you’re not returning a value with
return