Question: 1. The last statement of each function must be a return statement. True False 2.When the ______ statement is executed, the variable or expression is
1.
The last statement of each function must be a return statement.
True
False
2.When the ______ statement is executed, the variable or expression is evaluated and the resulting value is returned as the output of the function
3.What is a function library?
4.Suppose some functions have been entered into a local file named "income.js". Write the correct SCRIPT tag to load the library to a Web page.
5.How to define a function library and use the library from other Web pages?
6.
The Mosteller Formula is often used by doctors to estimate the surface area of a person's body given height and weight. The formula is as follows, where hight is assumed to be in centimeters, weight is in kilograms, and surface is in square meters:
Write a function named as getSurfaceArea, which takes height and weight as parameters, calculates and returns the surface area by applying the above Mosteller Formula.
7.
Define a function named as calcAverage, which takes score1, score2, and score3 as parameters, calculates and returns the average of the three scores.
8.
What's wrong with the following HTML document?

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
