What is a function?
“A function is a JavaScript procedure—a set of statements that performs a task or calculates a value.” - MDN Web Docs
Analogy
Think about some appliances in your kitchen: a dishwasher, refrigerator, toaster, oven, etc. Each of these appliances do a very specific thing – dishwashers