Ravi Sir's Cards › AWS
Functions in 4 steps
This revision card explains Functions in 4 steps. It starts from the need that define — name() { }. It describes args are $1, $2 inside. The how-to section covers how to use local for variables. An example on the card is status with return.
Read card text
What this card says
Why do we need it?
Define: name() { }.
What is it?
Args are $1, $2 inside.
How to do it
Use local for variables.
Example
Status with return.
return 1