Function

Meaning

A block of code designed to perform a particular task.

Usage Examples

  • Functions can take inputs, called parameters, and return outputs.
  • A function can be called multiple times in a program.
  • Functions help organize code into reusable blocks.
  • In JavaScript, functions can be assigned to variables.