A function is a reusable block of code that performs a specific task.
Functions allow you to encapsulate code, provide input through parameters, and return output using the return keyword.
In JavaScript, functions are objects, and they have both properties and methods.