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