Using multiple parameters Flashcards
To add more parameters to a function, we code a WHAT followed by the next parameter’s name
Comma 🔸,🔸
How many parameters can a function have?
as many as we’d like
How do we pass values to a function with multiple parameters?
in the order of how the parameters are placed in the function definition
Why is it important to give functions descriptive names?
To know at a glance what that function does
What do function names usually start with?
Verbs like “create”
What are some verbs that functions that return values might start with?
Compute, calculate, get
What are some verbs that functions that return booleans might start with?
Is, has, can
What does keeping the same function naming mean?
Using the same verb for function that perform similar tasks