Functions are one of the most important concepts in JavaScript. They help us organize code, avoid repetition, and make programs easier to understand and maintain.

Think of a function as a machine:


You give it some input.
It performs a task.
It may return an output.


For example:



function makeTea() {
console.log("Tea is...