title: The purpose of "Self Invoking Anonymous Functions"
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/592396/what-is-the-purpose-of-a-self-executing-function-in-javascript">What is the purpose of a self executing function in javascript?</a>  </p>
  </blockquote>
  
  
  
  <p>Hopefully quite a straight forward question:</p>
  
  <p>What is the purpose of using self invoking anonymous functions? Is it simply to prevent "polluting" the global scope with variables etc.? Or are there other advantages to using them?</p>