self executing function code example Example: self calling function (function(){ console.log(Math.PI); })();