At 10:10 in this video how is the values coming out to be 0 1 2 3 4 5 6 7 8 9

explain iife scope at 10:10 in this video