You use a local variable when you want to be sure you don’t have variable values floating around interfering with other functions.
Uporabite jo takrat, kadar ne želite imeti veliko spremenljivk, ki motijo druge funkcije.