Skip To Content

Athabasca University

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

  1. How do you define new functions in JavaScript?
  2. What mathematical functions are provided in JavaScript?
  3. What is the duration of identifiers in JavaScript?
  4. What are the scope rules for identifiers in JavaScript?
  5. What are global functions in JavaScript?
  6. What is recursion? How do you define recursive functions in JavaScript?
  7. How are form variables used in JavaScript?
  8. What are the differences between recursion and iteration?

Review

Do the self-review exercises in Chapter 9.

Summary

Read the Chapter 9 summary.

Updated April 07 2016 by FST Course Production Staff