Functions in code
Named, reusable blocks of code that take inputs (parameters) and produce outputs (return values).
Depth 1 · Foundation
You can define and call functions, pass arguments and use return values.
Sign in to prove what you know with a short quiz, see how deep you've gone, and earn XP for it.
Sign in with GoogleDepths of understanding
- 1
Foundation
You can define and call functions, pass arguments and use return values.
- 2
Deeper
You can tell a pure function - same input, same output, no side effects - from one that isn't, and why pure functions are math's functions.
Your path here
What's still between you and Functions in code, depth 1, in the order you can learn it.
- 1ProgramDepth 1 · Foundation · Program Basics
- 2ExpressionDepth 1 · Foundation · Program Basics
- 3Variables in codeDepth 1 · Foundation · Program Basics
- 4Program stateDepth 1 · Foundation · Program Basics
- 5Input and outputDepth 1 · Foundation · Program Basics
- 6Functions in codeDepth 1 · Foundation · Functions