Please enable JavaScript to use CodeHS

Arkansas Programming I (JavaScript) (2020)

Functions, Events, and Lists

Students learn how to write reusable code using functions and parameters.

Lessons

10.1 Functions and Parameters 1

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

10.2 Functions and Parameters 2

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

10.3 Functions and Parameters 3

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

10.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

10.5 Functions and Return Values 2

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

10.6 Local Variables and Scope

  • Local Variables and Scope
  • Local Variables and Scope Quiz
  • Return Values
  • Local Variables

10.7 Timers

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

10.8 Random Circles

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

10.9 Random Ghosts

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

10.10 Bouncing Ball

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

10.11 Mouse Events: Mouse Clicked

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

10.12 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

10.13 Adding/Removing From an Array

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

10.14 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

10.15 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