Tuesday, 11 August 2009
JavaScript Object (Pt 1)
JavaScript objects are conceived as a collection of properties. This collection can include values, functions, and other objects. A JavaScript object constructor is no different from any other function. As far as I can tell, any function used with the new keyword will result in a new object being created. It’s down to the individual developer to make sure that the function actually does something meaningful to the object being created.