What you will learn in this lesson
JavaScript does not need to repeat the same instructions from scratch every time.
That is why functions matter. They let you group a small set of instructions, give that group a clear name, and use it again later.
Your lesson goals are simple:
- understand what a function is in plain English
- see how functions help JavaScript reuse the same action
- tell the difference between defining a function and calling it
- read a few tiny examples without feeling buried in symbols
- treat functions as one small pattern, not a giant leap
Functions help JavaScript reuse a small action instead of rewriting the same instructions again and again.