O'Reilly logo
  • Anantprakash Pathak thinks this is interesting:

you must always use var to declare local variables.

From

Cover of JavaScript: The Definitive Guide, 6th Edition

Note

** If you don't make variables in a Fun as var they will be declared as global variables.