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
 
PREVIOUS NEXT
Tagged: #javascript #function #return #function
ADD COMMENT
Topic
Name
5+1 =