Why Do You Need A Self Invoking Function In Javascript Web

Why Do You Need A Self Invoking Function In Javascript Web