Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Variable As Parameter In Self Invoking Function

var x = "AAAAAAA333AA";
(function (a) {
console.log(a);
}(x));
 /*x must be already defined at the time*/
 
PREVIOUS NEXT
Tagged: #Variable #As #Parameter #In #Self #Invoking #Function
ADD COMMENT
Topic
Name
5+9 =