Posted By

arpit on 09/22/09


Tagged

core


Versions (?)

Invoke anonymous function in .js


 / Published in: JavaScript
 

Good for isolating code inside from global vars. Example, pass jquery references from the window scope

  1. (function(){
  2. alert('invoke moi')
  3. })();

Report this snippet  

You need to login to post a comment.