Function Literals

   

A function literal is defined in an expression, as opposed to being a standalone function. The biggest difference between a function literal and a function is that a function literal is not reusable. Following is an example of a function literal:

 Sqr = function(z) { return this.z * z; }; 

   
Top


Certified Macromedia Flash MX Designer Study Guide
Certified Macromedia Flash MX Designer Study Guide
ISBN: 0321126955
EAN: 2147483647
Year: 2001
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net