the var keyword makes global variables in general unless the variable is declared in a function. The function scope takes over in this case. (so it is like the global variable you made doesn’t even exist because you declared a new variable inside the function with the same name)