JS Что означает var

Used to create a variable that is globally scoped when not used in a function. 
When it is used in a function, it can only be used in that function and not
outside of it. This statement is comparable to let but more globalized.
kirbster102