Section 2.2 Control Statements in JavaScript
Learning Objectives
After you have completed this section, you should be able to
- write scripts using various control statements for selection and repetition.
Activities
- Carefully read the learning objectives.
- Watch presentation part one for the section, and part two
- Read Chapter 7, JavaScript: Control Statements I, and Chapter 8, JavaScript: Control Statements II.
- Find answers to the study questions below.
- Do exercises 7.11 through 7.20 in Chapter 7.
- Do exercises 8.6 through 8.13 in Chapter 8.
Study Questions
- What control structures are provided for selection and repetition in JavaScript?
- What are the differences between the while repetition control structure and the do/while repetition control structure?
Review
Do the self-review exercises at the end of Chapters7 and 8.
Summary
Read the Chapter 7 and Chapter 8 summaries.