Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Return Function As Parameter For Self Invoking Function


      (function (a) {
console.log(a);
}(x()));
function x()
{
  return "XXXXX";
}   
/*console.log is XXXXX*/
 
PREVIOUS NEXT
Tagged: #Return #Function #As #Parameter #For #Self #Invoking #Function
ADD COMMENT
Topic
Name
4+7 =