JavaScript first appeared 22 years ago in 1995,  in most of its lifetime there has been only one way to declare a variable using the var keyword.  Some declarations of var can have some unexpected behaviours due to scope. That's why with the...