What does the second parenthesis for the javascript pseudo protocol used in bookmarklet code, signify? -


a bookmarklet has code in following pattern -

javascript:(function(){})() 

what second parenthesis signify? please explain in context of snippet -

javascript: (function (d, w, f, t, e) {     t = (e = w.elp$ || 0) ? clearinterval(e, d.title = odt, elp$ = 0) && 0 : f(w.elp$ = setinterval(function () {         d.title = (new date(f() - t)).toisostring().substr(11, 8)     }, 40), w.odt = d.title) })(document, window, function () {     return (new date()) | 0 }); 

the second set of parantheses used call function defined. in case of second snippet, calls function , passes in parameters document, window , new function defines.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -