const a = 'MDNS';
function init() {
console.log(a)
}
init();
Is the above code is a closure? or Is there any other way we can make closure from single function only.
const a = 'MDNS';
function init() {
console.log(a)
}
init();
Is the above code is a closure? or Is there any other way we can make closure from single function only.