JavaScript Functions & For loop
Nested functions:
Try it