Domanda di colloquio di Calix

What is the JavaScript closure?

Risposta di colloquio

Anonimo

23 mar 2016

It is a kind of shared variable between code context, and every function instance can have separate instances of these variables. It may bind to function instance when function object is created.