Pergunta de entrevista da empresa Tata Consultancy Services

what is closure?

Resposta da entrevista

Sigiloso

21 de fev. de 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