You are on page 1of 15

Unit 7 - Lesson 3

Parameters and Return Practice

Computer Science Principles


Unit 7 Lesson 3 - Activity

Parameters & Return Practice


Let’s take another app through the development process!

You will choose one of the two possibilities.


Unit 7 Lesson 3 - Activity

Parameters & Return Practice


Read the first level of each app to Note the Spice Level 🌶!
see a description of what you are
being asked to create. More spice = more challenge.
Unit 7 Lesson 3 - Activity

Parameters & Return Practice


As you make your way through the choice levels, make sure that you
keep selecting the same app that you chose at the beginning.

You will be building out the app and your coding progress will save as
you move through the levels.

��🏽
Unit 7 Lesson 3 - Activity

Parameters & Return Practice


If you want to switch apps at some point in the process, you will have to
start back at level one of the new app.

��🏽
Unit 7 Lesson 3 - Activity

Create PT Performance Task Writing


Practice

How does this code exemplify this


programming concept? Detail its
purpose, how it's implemented, and
how it aids in making the program
Snip and paste an more efficient and manageable.
example code with
parameters and
returns here! …
Unit 7 Lesson 3 - Wrap Up

Prompt:
What aspects of working with
parameters and return values do you
feel like clicked today?

What do you still feel like you have


trouble with?
Unit 7 Lesson 4 - Wrap Up

Prompt:

How could using parameters and


return help you write programs
collaboratively?
Unit 7 Lesson 3 - Warm Up

Prompt: What is one reason why


parameters and return values are useful?

What is one way you think programming


with parameters and return values may
make programming or debugging more
challenging?
Unit 7 Lesson 3 - Activity

Debugging: the process of finding and fixing problems in code

Describe Hunt
The Problem For Bugs
What do you expect it to do? Are there warnings or errors?
What does it actually do? What did you change most recently?
Does it always happen? Explain your code to someone else
Look for code related to the problem

Try Document
Solutions As You Go
Make a small change What have you learned?
What strategies did you use?
What questions do you have?
Unit 7 Lesson 3 - Activity

Debugging Functions with Parameters and Return

Use the speed


slider to slow down
code so you can
watch how
functions are being
called. This will
highlight lines of
code in yellow as
the program runs.

Use console.log to call functions


with parameters and see how calling
them with different values returns
different values
Unit 7 Lesson 3 - Activity

Parameters and Return Practice

Do This:
● Navigate to Lesson 3,
Level 1 on Code Studio

You might also like