Function scope
A function can be declared as local
to limit the scope of the function. A function is global by default.
It's good practice to use local
whenever possible to limit the scope of functions and variables to where they are needed. It allows for a flexible and modular approach in designing functions.
Â