closures bind just variables used inside a function
JavaScript
function closureTest() {
var a = 5;
var b = 6;
var c = 7;
function inside() {
console.log(a);
// b and c are not defined
debugger;
}
inside();
}
closureTest();