faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

What kind of function/class if the construct "(function() { ... })();" ?

Apr 9th, 2008 20:24
ha mo, Dave Clark, Jeroen Keppen s,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeroen,
I'm not real clear on what you're asking.  The following represents 
what is referred to as an "anonymous" function.  However, it is still 
a function and has the attributes and properties of the Function() 
constructor class object.
    (function() { ... })();
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.healthinhealth.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com