What Is a Function?
A function is a reusable set of steps.
A Magic Recipe
Hi explorer! 🧑🍳 Today we learn about functions.
A function is like a recipe. It is a group of steps you save so you can use them again and again!
Why Recipes Help
Imagine making a sandwich. 🥪
- Get the bread
- Add cheese
- Close it up
If you write these steps once, you can make a sandwich any time without thinking hard!
All lessons in this course
- What Is a Function?
- Writing Your First Function
- Giving Functions Inputs
- Returning a Result