Search code examples
javascriptjqueryadobe-edge

(function(symbolName) { - What does this mean


Possible Duplicate:
What do parentheses surrounding a JavaScript object/function/class declaration mean?
What does (function($) {})(jQuery); mean?

I am trying to understand how Edge works so I can use my own code,

I have not come accross this before, but what does this mean:

 (function(symbolName) {


      //CODE


   })("stage");

Solution

  • It's an anonymous function that is defined and then called with the argument "stage"