JavaScript, React, Programming, Web Development, Front End Development.
explanation: Every function returned in for loop is creating a closure over variable i . Learn more about closure here. And the variable i is declared using var which makes it available to whole function. And when we call the function using funcs[5]() it is returning value of i which is 10. Q.12