Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

parameter

A value a function receives when it is called.

Parameters are a function's typed inputs; the values passed at a call are arguments.

Loading interactive…

Examples

  • In fn pay(hours: u32, rate: u32), hours and rate are parameters; each needs a type, so fn double(n) does not compile.

Read the full section →