Please enable JavaScript to use CodeHS

Tennessee Coding I

Lesson 7.3 Default Parameter Values

Description

In this lesson, students learn how to set default values for their function’s parameters.


Objective

Students will be able to:

  • Understand the role default values can have in a function.
  • Set default values for their parameters.
  • Properly set the order of parameters and the default values.