Answers for "how to know what function you get inside function 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

call local function javascript

function x() {
};

x.y = function() { alert('2');};

function z() {  x.y(); }
Posted by: Guest on August-23-2020

Code answers related to "how to know what function you get inside function javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language