A
Q. Which of the following values will be returned by the last statement in the given code?
Code:functionconstfun()
{
var fun =[];
for(vari=0;i<10;i++)
fun[i]=function(){returni;};
return fun;
}
var fun =constfun();
fun[5]()