Please enable JavaScript to use CodeHS

Nevada Advanced Computer Science I

Functions

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

Lessons

9.1 Parameters

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

9.2 Return Values

  • Return Values
  • Return Values Quiz
  • Mathematical Returns
  • Offscreen Graphics
  • Max
  • +4 more

9.3 Default Parameter Values

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

9.4 Variable Scopes

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

9.5 JavaScript vs Karel

  • JavaScript vs Karel
  • Making Karel's World
  • Making Karel Turn Left
  • Making Karel Turn Right
  • Making Karel Move
  • +2 more

9.6 Functions Quiz

  • Functions and Parameters Quiz

Courses that include this module