Hello,
I have here another chapter in the Javascript Course, which I dont understand in detail.
function multiplyByNineFifths(number) {
return number * (9/5);
};
function getFahrenheit(celsius) {
return multiplyByNineFifths(celsius) + 32;
};
getFahrenheit(15); // Returns 59
I am confused by the code return multiplyByNineFifths(celsius) + 32;
I thought, that I need to invoke the function like multiplyByNineFifths(celsius) and assign it to a variable for example and then put the variable in the return statement, but this function has not been invoked. Everything is in a return statement. Is this some sort of short cut for invoking a function or did I miss something (what can I put in the return statement, do I need this intermediate step)?