1.

Which of the following is not an example of closures?(a) Objects(b) Variables(c) Functions(d) Graphics

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.


Discussion

No Comment Found

Related InterviewSolutions