Function is a mathematical method which is ‘does’ stuffs depend on it’s returning type. For example, a ‘plus’ function would return with the addition of 2 parameters from the input to the output.
a, f(2) = 4
b, f(7) = 17
c, f(0) is a tricky one. If we consider 0 as an even, then the answer is 0, but if we consider 0 as an odd number then it’s 10. maybe we throw exception for 0.
function f ( x ) {
return (x / 4) - 5;
}