A function is a block of code that runs when it is called.
Functions help organize and reuse code.
Functions can take inputs called parameters.
Functions can return values using the return keyword.
Arrow functions provide a shorter syntax.
Functions only run when they are called.
Create a function that takes two numbers and returns their sum.
Ask the AI if you need help understanding or want to dive deeper in any topic