01 / 03
The four tools you have picked up
Let us line up what this chapter taught you.
- a function … give a lump of work a name and call it up
- a parameter … hand a value over at the call and change what happens inside
- a return value … carry a result home with
returnand use it at the caller - scope … how far a variable reaches. The inside sees out, but the outside does not see in
With all four in hand, you can write in the style of making parts and putting them together.