Please enable JavaScript to use CodeHS

Introduction to Computer Science in JavaScript (Corgi)

Description

In this lesson, students will expand their use of functions by learning about and implementing parameters.

Objective

Students will be able to:

  • Explain the use of parameters and arguments
  • Create functions that take in parameters as input
  • Use parameters to generalize functions and reduce repeated code
Description

In this lesson, students learn about return statements and how to use them to send information between functions.

Objective

Students will be able to:

  • Explain the purpose of returning a value from a function.
  • Create functions that return values.
  • Create programs that call functions with return values and store the result for later use.
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.
Description

In this lesson, students will explore the scoping of a variable, which is where the variable is “defined” or where it exists.

Objective

Students will be able to:

  • Identify the scope of a variable
  • Identify which variables are in scope at a given point in a program
Description

In this lesson, students review content with a 15 question Unit Quiz.

Objective

Students will be able to:

  • Prove their knowledge of functions and parameters through a multiple choice quiz