1.

Consider the following code snippet :function constfunctions() { var functions = []; for(var k = 0; k < 10; k++) functions [k] = function() { return k; }; return functions ;}var functions = constfunctions();functions [5]()What does the last statement return ?

A. 10
B. 9
C. 0
D. All of above
E. None of these
Answer» B. 9


Discussion

No Comment Found