Returning a Result
Send an answer back from a function.
Functions That Give Back
Hi superstar! ⭐ So far our recipes printed things.
Today they will return something, like handing you a gift back!
What Is Return?
The word return means "give this answer back to whoever called me". 🎁
It is different from print. Return hands you a value to use!
All lessons in this course
- What Is a Function?
- Writing Your First Function
- Giving Functions Inputs
- Returning a Result