Please enable JavaScript to use CodeHS

Texas Computer Science I

Functions

Students learn to write reusable code with functions, parameters, and return values, and explore the impact of variable scopes.

Lessons

10.1 Parameters

  • Parameters
  • Live Coding: Parameters
  • Parameters Quiz
  • Greetings
  • Slope of a Line
  • +4 more

10.2 Testing Your Programs

  • Program Testing
  • Test: Greetings
  • Test: Slope of a Line
  • Test: Draw Lots of Circles!
  • Testing Reflection

10.3 Return Values

  • Return Values
  • Return Values Quiz
  • Mathematical Returns
  • Writing Inspiration
  • Offscreen Graphics
  • +3 more

10.4 Default Parameter Values

  • Default Parameter Values
  • Default Parameter Values Quiz
  • Default Printing
  • Farming International
  • Compound Interest
  • +1 more

10.5 Variable Scopes

  • Variable Scope
  • Live Coding: Variable Scope
  • Variable Scope Quiz
  • Scope of X
  • Exploration: Scope of Ball
  • +3 more

10.6 Functions Quiz

  • Functions and Parameters Quiz

Courses that include this module