The var statement declares a function-scoped or globally-scoped variable, optionally initializing it to a value.
Visit the following resources to learn more: