why is function wrapped in parenthesis javascript code example Example: javascript function in brackets (function() { // code })();