Please enable JavaScript to use CodeHS

Indiana Computer Science I

Lesson 8.6 Local Variables and Scope

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