FIT100
Declarations
A function is declared by writing down
the “package” … the function is
used when it is
called
function BMI (units, height, weight ) {
// Compute BMI in either metric or English
if (units == "English")
return bmiE(weight, height);
else
return bmiM(weight, height);
}
Declaration
Calls