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
25.16 Using i in For Loops
25.17 Extended Loop Control
25.20 While Loops
28.10 For Loops
Standard
5.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
6.1 Introduction to jQuery
6.2 Iterating with jQuery
6.3 Animations with jQuery
19.14 Parameters
19.15 Return Values
19.16 Default Parameter Values
Standard
14.7 Looping: While Loops
14.8 Looping: For Loops
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
27.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
25.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
11.5 More Mouse Events
17.3 Animation Practice
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
1.4 Large Language Models
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
3.14 Using i in For Loops
3.15 Extended Loop Control
3.18 While Loops
Standard
6.14 Using i in For Loops
6.15 Extended Loop Control
6.18 While Loops
Standard
13.14 Using i in For Loops
13.15 Extended Loop Control
13.18 While Loops
Standard
3.1 What is Scripting?
3.2 Disappearing Platforms
3.3 Fading Platforms
3.4 Deadly Lava
Standard
1.3 Large Language Models
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
6.1 While Loops
6.2 For Loops
9.4 Large Language Models
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.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.9 For Loops
2.10 While Loops
4.9 Method Overloading
4.15 Polymorphism
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
21.9 Super Karel
Standard
6.10 Functions and Parameters 1
6.11 Functions and Parameters 2
6.12 Functions and Return Values 1
8.1 Introduction to jQuery
8.2 Iterating with jQuery
8.3 Animations with jQuery
Standard
3.5 Calling a Void Method with Parameters
3.6 Calling a Non-void Method
6.5 Informal Code Analysis
10.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
3.1 While Loops
3.2 For Loops
16.14 Using i in For Loops
16.15 Extended Loop Control
16.18 While Loops
17.8 Super Karel
18.9 Using Functions
18.10 Mini-Project: Findings
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
6.14 Parameters
6.15 Return Values
6.16 Default Parameter Values
7.1 Introduction to jQuery
7.2 Iterating with jQuery
7.3 Animations with jQuery
19.10 Functions and Parameters 1
19.11 Functions and Parameters 2
19.12 Functions and Return Values 1
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
11.14 Parameters
11.15 Return Values
11.16 Default Parameter Values
13.1 Timers
13.2 Stopping Timers
13.3 Collisions
13.4 Mouse Click Events
13.5 More Mouse Events
Standard
5.9 Using i in For Loops
5.10 Extended Loop Control
7.4 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
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.8 Super Karel
Standard
6.10 Functions and Parameters 1
6.11 Functions and Parameters 2
6.12 Functions and Return Values 1
8.1 Introduction to jQuery
8.2 Iterating with jQuery
8.3 Animations with jQuery
Standard
6.1 While Loops
6.2 For Loops
9.9 Using Functions
9.10 Mini-Project: Findings
10.3 Large Language Models
Standard
6.1 While Loops
6.2 For Loops
10.9 Using Functions
10.10 Mini-Project: Findings
11.3 Large Language Models
Standard
6.1 While Loops
6.2 For Loops
10.9 Using Functions
10.10 Mini-Project: Findings
11.3 Large Language Models
Standard
6.1 While Loops
6.2 For Loops
13.9 Using Functions
13.10 Mini-Project: Findings
14.4 Large Language Models
Standard
3.14 Using i in For Loops
3.15 Extended Loop Control
3.18 While Loops
Standard
11.3 Introduction to jQuery
Standard
8.1 Conditionals and State Change
8.2 Conditionals using Parameters
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.14 Using i in For Loops
18.15 Extended Loop Control
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
7.1 While Loops
7.2 For Loops
10.15 Using i in For Loops
10.16 Extended Loop Control
10.19 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
8.6 While Loops
8.7 For Loops
10.8 Super Karel
11.9 Using Functions
11.10 Mini-Project: Findings
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
1.8 Super Karel
9.11 While Loops
9.12 For Loops
Standard
8.15 While Loops
9.11 While Loops
9.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
18.3 Animation Practice
Standard
11.1 Parameters
11.2 Return Values
11.3 Default Parameter Values
11.4 Variable Scopes
13.3 Large Language Models
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.15 Using i in For Loops
1.16 Extended Loop Control
1.19 While Loops
Standard
1.15 Using i in For Loops
1.16 Extended Loop Control
1.19 While Loops
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
8.1 Timers
8.2 Random Circles
8.3 Random Ghosts
8.4 Bouncing Ball
8.5 Mouse Events: Mouse Clicked
Standard
9.10 Using Functions
9.11 Mini-Project: Findings
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.8 Super Karel
7.1 While Loops
7.2 For Loops
16.16 Using i in For Loops
16.17 Extended Loop Control
16.20 While Loops
Standard
7.9 Using Functions
7.10 Mini-Project: Findings
Standard
3.8 Super Karel
7.1 While Loops
7.2 For Loops
16.16 Using i in For Loops
16.17 Extended Loop Control
16.20 While Loops
Standard
7.9 Using Functions
7.10 Mini-Project: Findings
Standard
20.1 Parameters
20.2 Return Values
20.3 Default Parameter Values
20.4 Variable Scopes
22.1 Timers
22.2 Stopping Timers
22.3 Collisions
22.4 Mouse Click Events
22.5 More Mouse Events
Standard
15.4 Looping: While Loops
15.5 Looping: For Loops
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
8.1 Introduction to jQuery
8.2 Iterating with jQuery
8.3 Animations with jQuery
14.14 Functions and Parameters 1
14.15 Functions and Parameters 2
14.16 Functions and Return Values 1
14.17 Functions and Return Values 2
Standard
15.6 Timers
15.7 Random Circles
15.8 Random Ghosts
15.9 Bouncing Ball
15.10 Mouse Events: Mouse Clicked
15.1 Functions and Parameters 1
15.1 Functions and Parameters 1
15.2 Functions and Parameters 2
15.2 Functions and Parameters 2
15.3 Functions and Parameters 3
15.3 Functions and Parameters 3
15.4 Functions and Return Values 1
15.4 Functions and Return Values 1
15.5 Functions and Return Values 2
15.5 Functions and Return Values 2
Standard
7.1 Parameters
7.2 Return Values
7.3 Default Parameter Values
7.4 Variable Scopes
16.1 Timers
16.2 Stopping Timers
16.3 Collisions
16.4 Mouse Click Events
16.5 More Mouse Events
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
5.9 Using i in For Loops
5.10 Extended Loop Control
Standard
4.10 For Loops
4.11 While Loops
6.9 Method Overloading
6.15 Polymorphism
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
24.7 Looping: While Loops
24.8 Looping: For Loops
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
4.1 While Loops
4.2 For Loops
21.5 Calling a Void Method with Parameters
21.6 Calling a Non-void Method
23.5 Informal Code Analysis
28.9 Method Overloading
28.15 Polymorphism
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
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
1.8 Super Karel
6.1 While Loops
6.2 For Loops
10.4 Large Language Models
Standard
9.4 Large Language Models
Standard
1.8 Super Karel
6.1 While Loops
6.2 For Loops
18.4 Large Language Models
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
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
1.8 Super Karel
2.3 Large Language Models
9.1 While Loops
9.2 For Loops
Standard
4.9 Using i in For Loops
4.10 Extended Loop Control
5.4 While Loops
Standard
1.8 Super Karel
6.1 While Loops
6.2 For Loops
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
3.1 While Loops
3.2 For Loops
Standard
2.8 Super Karel
6.1 While Loops
6.2 For Loops
Standard
6.2 Large Language Models
8.5 While Loops
8.6 For Loops
13.7 Using Functions
13.8 Mini-Project: Findings
Standard
11.7 Looping: While Loops
11.8 Looping: For Loops
Standard
10.4 Large Language Models
13.9 Using Functions
13.10 Mini-Project: Findings
Standard
7.3 Overriding Methods
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
17.8 Super Karel
Standard
6.3 Overriding Methods