Section 2.3 Functions in JavaScript
Learning Objectives
After you have completed this section, you should be able to
- create and use JavaScript functions and arrays for your client-side scripts.
Activities
- Carefully read the learning objectives.
- Watch the presentation for the section;
- Read Chapter 9, JavaScript: Functions.
- Find answers to the study questions below.
- Do exercises 9.8 through 9.30 in Chapter 9.
Study Questions
- How do you define new functions in JavaScript?
- What mathematical functions are provided in JavaScript?
- What is the duration of identifiers in JavaScript?
- What are the scope rules for identifiers in JavaScript?
- What are global functions in JavaScript?
- What is recursion? How do you define recursive functions in JavaScript?
- How are form variables used in JavaScript?
- What are the differences between recursion and iteration?
Review
Do the self-review exercises in Chapter 9.
Summary
Read the Chapter 9 summary.