Modern Application Development II, End Term
September 2024 term, 22 Dec 2024, Set QDF1
Which of the following statements is true about closures in JavaScript?
A closure can access variables from its outer function even after the outer function has returned.
A closure can be created when a function is defined inside another function.
Closures are useful for data encapsulation and controlling access to private data.
All of these.
Sign in to report a problem with this question.
You cannot change your answers after submitting.
The palette shows the status of every question. Pick a number to go straight to it.
Which of the following statements is true about closures in JavaScript? Figure from the original question paper Figure from the original question paper