Write once, use often
Your family's chiya recipe lives on a card. Whenever someone wants tea, they don't reinvent it — they follow the card. A function is a recipe card for code: write the steps once, then use them by name whenever you like.
Defining and calling
function makeChiya() {
console.log("Boil water and milk");
console.log("Add tea leaves and spices");
console.log("Strain and serve ☕");
}
makeChiya();
makeChiya();Name functions with a verb: makeChiya, showMenu, greetUser. They do things.