function scope example
Original:notice that name “test” is closed in the third example…function test(){ function test(){ return test; } return test; }example 1test().toString(); // result: function test() { return test; }Example 2test.toString(); // result: function test() { function test() { return test; } return test; }Example 3test()().toString(); // result: function test() { return test; }