Variables Inside Functions
A function sets count=0 and the caller's count is unexpectedly reset. What prevents this?
count=0
count
Choose one answer
Declaring it with local count=0 inside the function.
local count=0
Exporting the variable before calling the function, so it gets copied.
Calling the function with source instead of directly.
source
Naming the variable in uppercase inside the function.