Please enable JavaScript to use CodeHS

Arizona Computer Science

Lesson 9.3 Functions and Parameters 3

Description

In this lesson, students continue working with multiple parameters that create graphics as output which is very useful, since creating several different graphical objects involves writing the same code over and over again (set the size, set the color, set the location, etc).


Objective

Students will be able to:

  • Explain the purpose of functions
  • Create JavaScript functions
  • Utilize JavaScript functions to simplify graphics programs
  • Identify repeated code that can be simplified with functions and parameters
  • Create functions that take in multiple parameters as input, and create graphics as output