JavaScript/JScript: Control Structures I - Pearson Learning Solutions
JavaScript/JScript: Control Structures I - Pearson Learning Solutions
JavaScript/JScript: Control Structures I - Pearson Learning Solutions
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
2008934301<br />
Chapter 14 <strong>JavaScript</strong>/<strong>JScript</strong>: <strong>Control</strong> <strong>Structures</strong> I 441<br />
14.17 Using an approach similar to Exercise 14.15, find the two largest values among the 10 digits<br />
entered. (Note: You may input each number only once.)<br />
14.18 Modify the program in Fig. 14.11 to validate its inputs. On any input, if the value entered is<br />
other than 1 or 2, keep looping until the user enters a correct value.<br />
14.19 What does the following program print?<br />
1 <br />
2 <br />
3 Mystery Script<br />
4<br />
5 <br />
6 var count = 1;<br />
7<br />
8 while ( count = 1 ) {<br />
9 column = 1;<br />
10<br />
11 while ( column