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.
Source: [Dev.to](https://dev.to/annapoo/types-of-functions-in-javascript-105)