Home / Programming MCQs / JavaScript MCQs / Question
P
Q. Which of the following values will be returned by the last statement in the given code?
functionconstfun() { var fun =[]; for(vari=0;i<10;i++) fun[i]=function(){returni;}; return fun; } var fun =constfun(); fun[5]()
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
which operator evaluates its operands, then discards the value and returns undefined?
What is the correct syntax for checking the value of “c”?
Which property is used to get the length of a string in JavaScript?
How many rules are there in the YSlow version 2.0?
What keyword is used to check whether a given property is valid or not?
How many methods are there in the History object?
_______ extracts a part of a string and returns the extracted part in a new string.
Which of the following functions of “Number” object returns a string of the current number?
Discusssion
Login to discuss.