0
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.

0 Answers0