O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Put all your local variable declarations at the beginning of the function body

From

Cover of Head First JavaScript Programming

Note

where should you put your local variables?