Knaph

Functions in code

Named, reusable blocks of code that take inputs (parameters) and produce outputs (return values).

Level 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 Google

Levels of understanding

  1. 1

    Foundation

    You can define and call functions, pass arguments and use return values.

  2. 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, level 1, in the order you can learn it.

  1. 1Variables in codeLevel 1 · Foundation · Programming
  2. 2Functions in codeLevel 1 · Foundation · Programming