Domanda di colloquio di Tata Consultancy Services

what is closure?

Risposta di colloquio

Anonimo

21 feb 2017

a closure is a function inside the another function. it can access outer function variables inaddition to its inner function variables and global variables.inner function has access not only outer function variables but also outer function parameters a function inside the other function is called closure