without closure, it just outs the int 10, ten times.
works with a closure, but now I have a ref to a var I only use once.
works with an iife and closure, but looks a bit messy.
works and looks cleaner with Array.forEach.  It just reads so much cleaner.