InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is not an example of closures?(a) Objects(b) Variables(c) Functions(d) GraphicsI got this question in homework.This interesting question is from Closures topic in portion Lexical Structures of JavaScript |
|
Answer» RIGHT CHOICE is (d) Graphics For EXPLANATION: In JavaScript, closures are created EVERY time a function is created, at function creation time. Technically, all JavaScript functions are closures: they are objects, and they have a scope CHAIN associated with them. |
|