If we assume we shadow all the variable from global scope. is a closure still created?
function init() {
function displayName() {
// if all variables from global are re-declared here
alert("no free variables");
}
displayName();
}
init();
I have read this one, How do JavaScript closures work?