javascript name

Solutions on MaxInterview for javascript name by the best coders in the world

showing results for - "javascript name"
Neo
01 Feb 2017
1const func1 = function() {};
2
3const object = {
4  func2: function() {}
5};
6
7console.log(func1.name);
8// expected output: "func1"
9
10console.log(object.func2.name);
11// expected output: "func2"