Friday, March 22, 2013

Self invoking Function in JS


//self invoking function expression
   (function sayHello() {
      alert("hello!");
   })();
This function will automatically triggered on page load

No comments: