nitpick - best practice avoids variable declaration inside for loop. Best to declare at top of function since hoisting will happen anyway.