Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

iife javascript

var result = (function () {
    var name = "Barry"; 
    return name; 
})(); 
// Immediately creates the output: 
result; // "Barry"
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #iife #javascript
ADD COMMENT
Topic
Name
4+8 =