This tutorial example tests two global variables: one declared with a "var" statement, and one without.
Both variables behave identically. They are valid and accessible inside the function.
See the output:
Updated value in function:
globalVar = Cat - Updated
globalNoVar = Dog - Updated
After function call:
globalVar = Cat - Updated
globalNoVar = Dog - Updated