Skip to content

Functions

Functions

  • A function is a named block of code you can run again and again.
  • function name(params) { ... return value; }. The params are the inputs.
  • return hands a value back to whoever called the function.

Log in or create account

IGCSE & A-Level