JavaScript Functions & For loop

Nested functions: