Global variables are the one that are defined and declared outside a function and we need to use them inside a function.
Loading
Global variables are the one that are defined and declared outside a function and we need to use them inside a function.
variable declare inside function known as local variable and outside the function is known as global variable