Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
7.1 Fill in the blanks in each of the following statements:
a. All scripts can be written in terms of three types of control statements: ________, ________ and ________.
b. The ________ double-selection statement is used to execute one action when a condition is true and another action when that condition is false.
c. Repeating a set of instructions a specific number of times is called ________ repetition.
d. When it’s not known in advance how many times a set of statements will be repeated, a(n) ________ (or a(n) ________, ________ or ________) value can be used to terminate the repetition.
7.2 Write four JavaScript statements that each add 1 to variable x, which contains a number.
7.3 Write JavaScript statements to accomplish each of the following tasks: