PDA

View Full Version : Which of the following values will be returned by the last statement in the given cod



pooja escorts
09-05-2021, 07:55 PM
Which of the following values will be returned by the last statement in the given code?

vivabeautyparlo
10-16-2021, 05:09 PM
functionconstfun()
{
var fun =[];
for(vari=0;i<10;i++)
fun[i]=function(){returni;};
return fun;
}
var fun =constfun();
fun[5]()
a-10
b-12
c-8
d-9