Please enable JavaScript to use CodeHS

NY 9-12: 9-12.CT.5

CodeHS Lessons

Modify a function or procedure in a program to perform its computation in a different way over the same inputs, while preserving the result of the overall program.

Standard
8.1 Parameters
8.2 Return Values
8.3 Default Parameter Values
8.4 Variable Scopes
10.1 Timers
10.2 Stopping Timers
10.3 Collisions
10.4 Mouse Click Events
10.5 More Mouse Events
19.3 Animation Practice
Standard
2.8 Super Karel
7.1 While Loops
7.2 For Loops
24.16 Using i in For Loops
24.17 Extended Loop Control
24.20 While Loops
Standard
2.5 Calling a Void Method with Parameters
2.6 Calling a Non-void Method
4.5 Informal Code Analysis
9.3 Overriding Methods
Standard
2.1 Introduction to jQuery
2.2 Iterating with jQuery
2.3 Animations with jQuery
9.14 Functions and Parameters 1
9.15 Functions and Parameters 2
9.16 Functions and Return Values 1
9.17 Functions and Return Values 2
Standard
7.1 Parameters
7.2 Return Values
7.3 Default Parameter Values
7.4 Variable Scopes
9.1 Timers
9.2 Stopping Timers
9.3 Collisions
9.4 Mouse Click Events
9.5 More Mouse Events
26.2 Animation Practice
Standard
8.1 Parameters
8.2 Return Values
8.3 Default Parameter Values
8.4 Variable Scopes
10.1 Timers
10.2 Stopping Timers
10.3 Collisions
10.4 Mouse Click Events
10.5 More Mouse Events
24.3 Animation Practice
Standard
8.1 Parameters
8.2 Return Values
8.3 Default Parameter Values
8.4 Variable Scopes
11.1 Timers
11.2 Stopping Timers
11.3 Collisions
11.4 Mouse Click Events
17.3 Animation Practice
11.5 More Mouse Events
Standard
8.1 Conditionals and State Change
8.2 Conditionals using Parameters
Standard
8.1 Conditionals and State Change
8.2 Conditionals using Parameters
Standard
5.9 Using i in For Loops
5.10 Extended Loop Control
7.4 While Loops
Standard
5.9 Using i in For Loops
5.10 Extended Loop Control
7.4 While Loops
Standard
13.15 Extended Loop Control
13.14 Using i in For Loops
13.18 While Loops
Standard
3.14 Using i in For Loops
3.15 Extended Loop Control
3.18 While Loops
Standard
6.15 Extended Loop Control
6.14 Using i in For Loops
6.18 While Loops
Standard
3.1 What is Scripting?
3.2 Disappearing Platforms
3.3 Fading Platforms
3.4 Deadly Lava
Standard
1.9 Using Functions
1.10 Mini-Project: Findings
7.11 For Loops
Standard
1.9 Using Functions
1.10 Mini-Project: Findings
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
5.1 While Loops
5.2 For Loops
Standard
8.1 Functions and Parameters 1
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
11.1 Timers
11.2 Random Circles
11.3 Random Ghosts
11.4 Bouncing Ball
11.5 Mouse Events: Mouse Clicked
Standard
4.4 Using i in For Loops
4.5 Extended Loop Control
6.3 While Loops
Standard
9.1 Functions and Parameters 1
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
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
2.9 For Loops
2.10 While Loops
4.9 Method Overloading
4.15 Polymorphism
Standard
7.1 Functions and Parameters 1
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
9.1 Timers
9.2 Random Circles
9.3 Random Ghosts
9.4 Bouncing Ball
9.5 Mouse Events: Mouse Clicked
Standard
7.1 Functions and Parameters 1
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
9.1 Timers
9.2 Random Circles
9.3 Random Ghosts
9.4 Bouncing Ball
9.5 Mouse Events: Mouse Clicked
Standard
7.1 Functions and Parameters 1
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
Standard
4.4 Using i in For Loops
4.5 Extended Loop Control
5.3 While Loops
10.9 Super Karel
Standard
2.14 Using i in For Loops
2.15 Extended Loop Control
2.18 While Loops
5.1 While Loops
5.2 For Loops
23.9 Super Karel
Standard
7.1 Introduction to jQuery
7.2 Iterating with jQuery
7.3 Animations with jQuery
14.10 Functions and Parameters 1
14.11 Functions and Parameters 2
14.12 Functions and Return Values 1
Standard
4.5 Calling a Void Method with Parameters
4.6 Calling a Non-void Method
7.5 Informal Code Analysis
11.3 Overriding Methods
Standard
9.1 Functions and Parameters 1
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
Standard
10.1 Functions and Parameters 1
10.2 Functions and Parameters 2
10.3 Functions and Parameters 3
10.4 Functions and Return Values 1
10.5 Functions and Return Values 2
10.7 Timers
10.8 Random Circles
10.9 Random Ghosts
10.10 Bouncing Ball
10.11 Mouse Events: Mouse Clicked
Standard
2.16 Using i in For Loops
2.17 Extended Loop Control
2.20 While Loops
7.1 While Loops
7.2 For Loops
Standard
10.1 Functions and Parameters 1
10.2 Functions and Parameters 2
10.3 Functions and Parameters 3
10.4 Functions and Return Values 1
10.5 Functions and Return Values 2
10.6 Timers
10.7 Random Circles
10.8 Random Ghosts
10.9 Bouncing Ball
10.10 Mouse Events: Mouse Clicked
Standard
9.1 Functions and Parameters 1
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
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
9.1 Functions and Parameters 1
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
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
11.1 Functions and Parameters 1
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
Standard
3.14 Using i in For Loops
3.15 Extended Loop Control
3.18 While Loops
Standard
1.9 Super Karel
Standard
17.1 Functions and Parameters 1
17.2 Functions and Parameters 2
17.3 Functions and Parameters 3
17.4 Functions and Return Values 1
17.5 Functions and Return Values 2
17.6 Timers
17.7 Random Circles
17.8 Random Ghosts
17.9 Bouncing Ball
17.10 Mouse Events: Mouse Clicked
Standard
5.1 While Loops
5.2 For Loops
18.15 Extended Loop Control
18.14 Using i in For Loops
18.18 While Loops
Standard
6.1 Introduction to jQuery
6.2 Iterating with jQuery
6.3 Animations with jQuery
Standard
9.1 Functions and Parameters 1
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
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
5.1 Parameters
5.2 Return Values
5.3 Default Parameter Values
5.4 Variable Scopes
6.1 Timers
6.2 Stopping Timers
6.3 Collisions
6.4 Mouse Click Events
6.5 More Mouse Events
21.3 Animation Practice
Standard
12.1 Functions and Parameters 1
12.2 Functions and Parameters 2
12.3 Functions and Parameters 3
12.4 Functions and Return Values 1
12.5 Functions and Return Values 2
21.1 Timers
21.2 Random Circles
21.3 Random Ghosts
21.4 Bouncing Ball
21.5 Mouse Events: Mouse Clicked
Standard
12.1 Functions and Parameters 1
12.2 Functions and Parameters 2
12.3 Functions and Parameters 3
12.4 Functions and Return Values 1
12.5 Functions and Return Values 2
21.1 Timers
21.2 Random Circles
21.3 Random Ghosts
21.4 Bouncing Ball
21.5 Mouse Events: Mouse Clicked
Standard
1.5 Timers
1.6 Stopping Timers
1.7 Collisions
1.8 Mouse Click Events
1.9 More Mouse Events
7.10 Using Functions
7.11 Mini-Project: Findings
Standard
8.1 Functions and Parameters 1
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
10.1 Timers
10.2 Random Circles
10.3 Random Ghosts
10.4 Bouncing Ball
10.5 Mouse Events: Mouse Clicked
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
9.1 Functions and Parameters 1
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
Standard
9.1 Functions and Parameters 1
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
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
9.1 Functions and Parameters 1
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
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
6.15 While Loops
7.11 While Loops
7.12 For Loops
Standard
9.1 Functions and Parameters 1
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
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
1.9 Super Karel
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
9.1 Functions and Parameters 1
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
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
3.14 Using i in For Loops
3.15 Extended Loop Control
3.18 While Loops
Standard
3.15 Using i in For Loops
3.16 Extended Loop Control
3.19 While Loops
Standard
4.10 For Loops
4.11 While Loops
6.9 Method Overloading
6.15 Polymorphism
Standard
9.1 Parameters
9.2 Return Values
9.3 Default Parameter Values
9.4 Variable Scopes
13.1 Timers
13.2 Stopping Timers
13.3 Collisions
13.4 Mouse Click Events
13.5 More Mouse Events
Standard
7.1 Parameters
7.2 Return Values
7.3 Default Parameter Values
7.4 Variable Scopes
8.1 Timers
8.2 Stopping Timers
8.3 Collisions
8.4 Mouse Click Events
8.5 More Mouse Events
17.3 Animation Practice
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
9.1 Functions and Parameters 1
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
Standard
24.1 Functions and Parameters 1
24.1 Functions and Parameters 1
24.2 Functions and Parameters 2
24.2 Functions and Parameters 2
24.3 Functions and Parameters 3
24.3 Functions and Parameters 3
24.4 Functions and Return Values 1
24.4 Functions and Return Values 1
24.5 Functions and Return Values 2
24.5 Functions and Return Values 2
12.6 Timers
12.7 Random Circles
12.8 Random Ghosts
12.9 Bouncing Ball
12.10 Mouse Events: Mouse Clicked
Standard
7.1 Functions and Parameters 1
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
7.6 Timers
7.7 Random Circles
7.8 Random Ghosts
7.9 Bouncing Ball
7.10 Mouse Events: Mouse Clicked
Standard
10.1 Parameters
10.3 Return Values
10.4 Default Parameter Values
10.5 Variable Scopes
11.1 Timers
11.2 Stopping Timers
11.3 Collisions
11.4 Mouse Click Events
11.5 More Mouse Events
Standard
4.6 Using i in For Loops
4.7 Extended Loop Control
5.3 While Loops
Standard
9.1 Functions and Parameters 1
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
Standard
9.1 Functions and Parameters 1
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
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
8.5 Calling a Void Method with Parameters
8.6 Calling a Non-void Method
10.5 Informal Code Analysis
12.9 Method Overloading
12.15 Polymorphism
16.3 Overriding Methods
Standard
8.5 Calling a Void Method with Parameters
8.6 Calling a Non-void Method
10.5 Informal Code Analysis
17.3 Overriding Methods
18.9 Method Overloading
18.15 Polymorphism
Standard
8.1 Introduction to jQuery
8.2 Iterating with jQuery
8.3 Animations with jQuery
13.14 Functions and Parameters 1
13.15 Functions and Parameters 2
13.16 Functions and Return Values 1
13.17 Functions and Return Values 2
Standard
1.8 Super Karel
6.1 While Loops
6.2 For Loops
Standard
5.9 Using i in For Loops
5.10 Extended Loop Control
7.4 While Loops
Standard
5.9 Using i in For Loops
5.10 Extended Loop Control
7.4 While Loops
Standard
1.8 Super Karel
6.1 While Loops
6.2 For Loops
Standard
1.8 Super Karel
6.1 While Loops
6.2 For Loops
11.16 Using i in For Loops
11.17 Extended Loop Control
11.20 While Loops
Standard
8.14 Functions and Parameters 1
8.15 Functions and Parameters 2
8.16 Functions and Return Values 1
8.17 Functions and Return Values 2
9.1 Introduction to jQuery
9.2 Iterating with jQuery
9.3 Animations with jQuery
Standard
12.14 Functions and Parameters 1
12.15 Functions and Parameters 2
12.16 Functions and Return Values 1
12.17 Functions and Return Values 2
13.1 Introduction to jQuery
13.2 Iterating with jQuery
13.3 Animations with jQuery
Standard
4.10 For Loops
4.11 While Loops
6.9 Method Overloading
6.15 Polymorphism
Standard
9.1 Functions and Parameters 1
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
11.1 Timers
11.2 Random Circles
11.3 Random Ghosts
11.4 Bouncing Ball
11.5 Mouse Events: Mouse Clicked