FunctionsIntro

Programming foundations · lesson 4

Write it once. Use it forever.

You keep writing the same few lines over and over. A function lets you bundle those lines up, give them a name, and reuse them anywhere. It is a recipe: ingredients go in, a result comes out.

The building block of every real program.

Tap Start.

Quick, honest: how does this feel right now?