Answers for "javascript name"

-1

javascript name

const func1 = function() {};

const object = {
  func2: function() {}
};

console.log(func1.name);
// expected output: "func1"

console.log(object.func2.name);
// expected output: "func2"
Posted by: Guest on July-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language