Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

iife syntax

(function () {
  // some initiation code
  let firstVariable;
  let secondVariable;
})();

// firstVariable and secondVariable will be discarded after the function is executed.
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #iife #syntax
ADD COMMENT
Topic
Name
7+9 =