Defining and Calling
A function is a named block of instructions you can run whenever you need it. You define it once, then call it as many times as you like.
Without functions, every program is one long scroll of repeated logic. With them, you build a vocabulary of named operations, and your programs start reading like sentences.
Mark this lesson complete
Signed in, your progress follows you to every device.