4.6: Variable Scope
( \newcommand{\kernel}{\mathrm{null}\,}\)
If you are using the command line julia (also called the REPL) or iJulia, then entering x=6 will create x as a global variable, even without saying so explicitly. If we consider the factorial function above:
then recall that n is the function argument and the variable prod is actually declared locally implicitly and it is good form to say it is local by