Answers for "what is clouser in javascript"

4

closure in javascript

function makeFunc() {
  var name = 'Mozilla';
  function displayName() {
    alert(name);
  }
  return displayName;
}

var myFunc = makeFunc();
myFunc();
Posted by: Guest on July-04-2020
0

closure in javascript

A closure is a function bundeled together with its lexical scope
Posted by: Guest on December-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language