A function in JavaScript is a reusable block of code designed to perform a particular task.
They are considered First-Class Citizens, meaning they can be treated like any other variable.
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.