MCQOPTIONS
Bookmark
Saved Bookmarks
→
Javascript
→
Blobs in Javascript
→
Which of the following are examples of closures??..
1.
Which of the following are examples of closures??
A.
Objects
B.
Variables
C.
Functions
D.
All of the mentioned
Answer» E.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Consider the following code snippet :var scope = "global scope";function checkscope() {var scope = "local scope";function f(){return scope;}return f;What is the function of the above code snippet?
Consider the following code snippetfunction hypotenuse(a, b){function square(x){return x*x;}return Math.sqrt(square(a) + square(b));}What does the above code result?
Consider the following code snippetfunction printprops(o){for(var p in o)console.log(p + ": " + o[p] + "n");}What will the above code snippet result ?
Consider the following code snippetvar a1 = [,,,];var a2 = new Array(3);">0 in a10 in a2The result would be
Which of the algorithmic languages is lexical scoping standardized in?%!
What is the purpose of the dynamic scoping?%!
What is the opposite approach to the lexical scoping?%!
What will happen if reverse() and join() methods are used simultaneously ?%!
The method or operator used to identify the array is%!
What will happen if a return statement does not have an associated expression?%!
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply