Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript function return function

function test()
{
    return function x()
    {
        return "xxxxxxxx"
    }
}

console.log(test())
//[Function: x()]
console.log(test()())
//xxxxxxxx
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #function #return #function
ADD COMMENT
Topic
Name
9+7 =