Ray's Asp.net Blog

Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)

Pages

▼

Tuesday, February 7, 2012

What is (function(){})() in Javascript?

Call self-executing anonymous function, related to function closure.

Reference:
An Important Pair of Parens
http://peter.michaux.ca/articles/an-important-pair-of-parens

http://stackoverflow.com/questions/440739/what-do-parentheses-surrounding-a-javascript-object-function-class-declaration-m

Function Closure:
http://en.wikipedia.org/wiki/Closure_%28computer_science%29
at 11:13 AM No comments:

For large project, Dividing ASP.NET MVC Components in Separate Projects

http://www.dotnetexpertguide.com/2012/01/dividing-mvc-components-in-separate.html
at 10:57 AM No comments:
‹
›
Home
View web version
Powered by Blogger.