Please enable JavaScript to use CodeHS

Arizona Computer Science

Functions, Events, and Lists

This module teaches students how to write reusable code using functions and parameters.

Lessons

9.1 Functions and Parameters 1

  • Functions and Parameters 1
  • Functions and Parameters Quiz 1
  • Double Number
  • Square
  • Triple

9.2 Functions and Parameters 2

  • Functions and Parameters 2
  • Functions and Parameters Quiz 2
  • Sum Function
  • Area of Triangle
  • Height in Meters

9.3 Functions and Parameters 3

  • Functions and Parameters 3
  • Functions and Parameters Quiz 3
  • Draw Circles
  • Vertical Lines
  • Graphics Stop Light
  • +4 more

9.4 Functions and Return Values 1

  • Functions and Return Values 1
  • Functions and Return Values Quiz
  • Double Number
  • Square with Return Values
  • Triple with Return Values
  • +1 more

9.5 Functions and Return Values 2

  • Functions and Return Values 2
  • Functions and Return Values Quiz 2
  • Return Values
  • Is It Even?
  • Max

9.6 Timers

  • Timers
  • Timers Quiz
  • Moving Ball
  • Magic 8 Ball
  • Crazy Ball

9.7 Random Circles

  • Example: Random Circles
  • Random Circles Quiz
  • Random Circles
  • Spinner Example
  • Growing Circle
  • +3 more

9.8 Random Ghosts

  • Example: Random Ghosts
  • Random Ghosts Quiz
  • Random Ghosts
  • Random Fireworks
  • Circle Wall
  • +1 more

9.9 Bouncing Ball

  • Example: Bouncing Ball
  • Bouncing Ball Quiz
  • Bouncing Ball
  • Hotspot Ball
  • Trail
  • +1 more

9.10 Mouse Events: Mouse Clicked

  • Mouse Events: Mouse Clicked
  • Mouse Events: Mouse Clicked Quiz
  • Click For Circles
  • Click For Ghosts
  • Teleporting Ball
  • +1 more

9.11 Intro to Lists/Arrays

  • Intro to Lists/Arrays
  • Intro to Lists/Arrays Quiz
  • Making an Array
  • List of Places to Travel
  • List of Even Numbers

9.12 Adding/Removing From an Array

  • Adding/Removing From an Array
  • Adding/Removing from an Array Quiz
  • Add/Remove From Array
  • Practice Push and Pop

9.13 Array Length and Looping Through Arrays

  • Array Length and Looping Through Arrays
  • Array Length and Looping Through Arrays Quiz
  • Print Shopping List
  • Sum Array
  • Product of List
  • +4 more

9.14 Iterating Over an Array

  • Examples: Iterating Over an Array
  • Iterating Over an Array Quiz
  • Coin Flips
  • Many Crazy Balls
  • Coin Flip Fun: Number of Heads and Tails
  • +2 more

Courses that include this module