Please enable JavaScript to use CodeHS

VA 8: 8.2

CodeHS Lessons

The student will systematically test and refine programs using a range of test cases.

Standard
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
2.1 Challenge Problems
3.3 User Input
3.4 Basic Math in JavaScript
5.2 Logical Operators
5.3 Comparison Operators
5.4 If Statements
5.5 For Loops in JavaScript
5.9 While Loops
7.2 Functions and Parameters 2
7.3 Functions and Parameters 3
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
8.1 Functions Challenges
9.1 Timers
9.2 Random Circles
9.3 Random Ghosts
9.4 Bouncing Ball
9.5 Mouse Events: Mouse Clicked
9.6 Mouse Events: Mouse Moved
9.7 Drawing Lines
9.8 Key Events
9.9 Crazy Ball Game
11.1 Breakout
Standard
2.12 User Input
2.13 Parameters
2.16 If Statements
2.17 If/ Else Statements
2.18 While Loops
2.19 Putting Together Control Structures
4.2 If Statements
5.1 While Loops
5.4 Nested Control Structures
6.2 Functions and Parameters
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
1.16 Karel Challenges
13.12 User Input
13.13 Parameters
13.16 If Statements
13.17 If/ Else Statements
13.19 Putting Together Control Structures
13.18 While Loops
Standard
9.3 User Input
9.4 Basic Math in JavaScript
9.6 Logical Operators
9.7 Comparison Operators
9.8 If Statements
9.9 For Loops in JavaScript
9.12 While Loops
9.15 Functions and Parameters 2
9.16 Functions and Return Values 1
9.17 Functions and Return Values 2
Standard
4.3 Looping
4.4 Branching
21.1 Challenge Problems
22.2 Logical Operators
22.3 Comparison Operators
22.4 If Statements
22.5 For Loops in JavaScript
22.9 While Loops
Standard
4.2 User Input
4.3 Parameters
5.1 If Statements
5.2 If/ Else Statements
5.3 While Loops
6.1 Putting Together Control Structures
Standard
2.9 For Loops
2.10 If Statements
2.11 If/Else Statements
2.12 While Loops in Karel
2.13 Control Structures Example
2.16 Karel Challenges
3.12 User Input
3.13 Parameters
3.16 If Statements
3.17 If/ Else Statements
3.18 While Loops
3.19 Putting Together Control Structures
Standard
2.9 For Loops
2.10 If Statements
2.11 If/Else Statements
2.12 While Loops in Karel
2.13 Control Structures Example
2.16 Karel Challenges
3.3 User Input
3.4 Basic Math in JavaScript
6.12 User Input
6.13 Parameters
6.16 If Statements
6.17 If/ Else Statements
6.19 Putting Together Control Structures
6.18 While Loops
Standard
7.15 Functions and Parameters
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
1.16 Karel Challenges
Standard
2.1 For Loops
2.2 While Loops
2.3 Operators
2.4 If/Else Statements
2.5 Functions
3.1 micro:bit Challenges
Standard
2.1 Loops
2.2 If/Else Statements
2.3 Arithmetic, Comparison, and Logical Operators
2.4 Functions
2.5 Using Motors
3.1 Arduino Challenges
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
15.1 micro:bit Challenges
14.5 Functions
14.4 If/Else Statements
14.3 Operators
14.2 While Loops
14.1 For Loops
11.16 Karel Challenges
11.13 Control Structures Example
11.12 While Loops in Karel
11.11 If/Else Statements
11.10 If Statements
11.9 For Loops
Standard
1.11 If Statements
1.16 Karel Challenges
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
15.1 micro:bit Challenges
14.5 Functions
14.4 If/Else Statements
14.3 Operators
14.2 While Loops
14.1 For Loops
11.16 Karel Challenges
11.13 Control Structures Example
11.12 While Loops in Karel
11.11 If/Else Statements
11.10 If Statements
11.9 For Loops
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
15.1 micro:bit Challenges
14.5 Functions
14.4 If/Else Statements
14.3 Operators
14.2 While Loops
14.1 For Loops
11.16 Karel Challenges
11.13 Control Structures Example
11.12 While Loops in Karel
11.11 If/Else Statements
11.10 If Statements
11.9 For Loops
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
6.3 User Input
6.4 Basic Math in JavaScript
9.2 Logical Operators
9.3 Comparison Operators
9.4 If Statements
9.5 For Loops in JavaScript
9.9 While Loops
11.2 Functions and Parameters 2
11.3 Functions and Parameters 3
11.4 Functions and Return Values 1
11.5 Functions and Return Values 2
11.6 Timers
11.7 Random Circles
11.8 Random Ghosts
11.9 Bouncing Ball
11.10 Mouse Events: Mouse Clicked
17.1 Mouse Events: Mouse Moved
17.2 Drawing Lines
17.3 Key Events
17.4 Crazy Ball Game
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
16.4 Crazy Ball Game
16.3 Key Events
16.2 Drawing Lines
16.1 Mouse Events: Mouse Moved
17.10 Mouse Events: Mouse Clicked
17.9 Bouncing Ball
17.8 Random Ghosts
17.7 Random Circles
17.6 Timers
17.5 Functions and Return Values 2
17.4 Functions and Return Values 1
17.3 Functions and Parameters 3
17.2 Functions and Parameters 2
14.9 While Loops
14.5 For Loops in JavaScript
14.4 If Statements
14.3 Comparison Operators
14.2 Logical Operators
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
10.1 micro:bit Challenges
9.5 Functions
9.4 If/Else Statements
9.3 Operators
9.2 While Loops
9.1 For Loops
6.16 Karel Challenges
6.13 Control Structures Example
6.12 While Loops in Karel
6.11 If/Else Statements
6.10 If Statements
6.9 For Loops
Standard
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
2.1 Challenge Problems
4.3 User Input
4.4 Basic Math in JavaScript
6.2 Logical Operators
6.3 Comparison Operators
6.4 If Statements
6.5 For Loops in JavaScript
6.9 While Loops
8.2 Functions and Parameters 2
8.3 Functions and Parameters 3
8.4 Functions and Return Values 1
8.5 Functions and Return Values 2
9.1 Functions Challenges
10.1 Timers
10.2 Random Circles
10.3 Random Ghosts
10.4 Bouncing Ball
10.5 Mouse Events: Mouse Clicked
10.6 Mouse Events: Mouse Moved
10.7 Drawing Lines
10.8 Key Events
10.9 Crazy Ball Game
12.1 Breakout
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
15.1 micro:bit Challenges
14.5 Functions
14.4 If/Else Statements
14.3 Operators
14.2 While Loops
14.1 For Loops
11.16 Karel Challenges
11.13 Control Structures Example
11.12 While Loops in Karel
11.11 If/Else Statements
11.10 If Statements
11.9 For Loops
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
15.1 micro:bit Challenges
14.5 Functions
14.4 If/Else Statements
14.3 Operators
14.2 While Loops
14.1 For Loops
11.16 Karel Challenges
11.13 Control Structures Example
11.12 While Loops in Karel
11.11 If/Else Statements
11.10 If Statements
11.9 For Loops
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
15.1 micro:bit Challenges
14.5 Functions
14.4 If/Else Statements
14.3 Operators
14.2 While Loops
14.1 For Loops
11.16 Karel Challenges
11.13 Control Structures Example
11.12 While Loops in Karel
11.11 If/Else Statements
11.10 If Statements
11.9 For Loops
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
15.1 micro:bit Challenges
14.5 Functions
14.4 If/Else Statements
14.3 Operators
14.2 While Loops
14.1 For Loops
11.16 Karel Challenges
11.13 Control Structures Example
11.12 While Loops in Karel
11.11 If/Else Statements
11.10 If Statements
11.9 For Loops
Standard
2.3 User Input
2.4 Basic Math in JavaScript
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
15.1 micro:bit Challenges
14.5 Functions
14.4 If/Else Statements
14.3 Operators
14.2 While Loops
14.1 For Loops
11.16 Karel Challenges
11.13 Control Structures Example
11.12 While Loops in Karel
11.11 If/Else Statements
11.10 If Statements
11.9 For Loops
Standard
3.13 User Input
3.14 Parameters
3.17 If Statements
3.18 If/ Else Statements
3.19 While Loops
3.20 Putting Together Control Structures
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
15.1 micro:bit Challenges
14.5 Functions
14.4 If/Else Statements
14.3 Operators
14.2 While Loops
14.1 For Loops
11.16 Karel Challenges
11.13 Control Structures Example
11.12 While Loops in Karel
11.11 If/Else Statements
11.10 If Statements
11.9 For Loops
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
3.11 If Statements
3.12 If/Else Statements
3.13 While Loops in Karel
3.14 Control Structures Example
4.2 Challenge Problems
6.3 User Input
6.4 Basic Math in JavaScript
17.4 Crazy Ball Game
17.3 Key Events
17.2 Drawing Lines
17.1 Mouse Events: Mouse Moved
12.10 Mouse Events: Mouse Clicked
12.9 Bouncing Ball
12.8 Random Ghosts
12.7 Random Circles
12.6 Timers
12.5 Functions and Return Values 2
12.4 Functions and Return Values 1
12.3 Functions and Parameters 3
12.2 Functions and Parameters 2
10.9 While Loops
10.5 For Loops in JavaScript
10.4 If Statements
10.3 Comparison Operators
10.2 Logical Operators
Standard
2.10 If Statements
2.11 If/Else Statements
2.12 While Loops in Karel
2.13 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
10.1 Timers
10.2 Random Circles
10.3 Random Ghosts
10.4 Bouncing Ball
10.5 Mouse Events: Mouse Clicked
10.6 Mouse Events: Mouse Moved
10.7 Drawing Lines
10.8 Key Events
10.9 Crazy Ball Game
11.1 Breakout
Standard
2.10 If Statements
2.11 If/Else Statements
2.12 While Loops in Karel
2.13 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
3.2 Challenge Problems
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
15.1 Mouse Events: Mouse Moved
15.2 Drawing Lines
15.3 Key Events
15.4 Crazy Ball Game
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
15.1 micro:bit Challenges
14.5 Functions
14.4 If/Else Statements
14.3 Operators
14.2 While Loops
14.1 For Loops
11.16 Karel Challenges
11.13 Control Structures Example
11.12 While Loops in Karel
11.11 If/Else Statements
11.10 If Statements
11.9 For Loops
Standard
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
2.1 Challenge Problems
3.3 User Input
3.4 Basic Math in JavaScript
5.2 Logical Operators
5.3 Comparison Operators
5.4 If Statements
5.5 For Loops in JavaScript
5.9 While Loops
7.2 Functions and Parameters 2
7.3 Functions and Parameters 3
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
8.1 Functions Challenges
9.1 Timers
9.2 Random Circles
9.3 Random Ghosts
9.4 Bouncing Ball
9.5 Mouse Events: Mouse Clicked
9.6 Mouse Events: Mouse Moved
9.7 Drawing Lines
9.8 Key Events
9.9 Crazy Ball Game
11.1 Breakout
Standard
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
2.1 Challenge Problems
3.3 User Input
3.4 Basic Math in JavaScript
5.2 Logical Operators
5.3 Comparison Operators
5.4 If Statements
5.5 For Loops in JavaScript
5.9 While Loops
7.2 Functions and Parameters 2
7.3 Functions and Parameters 3
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
8.1 Functions Challenges