JavaScript version 1.2 introduces a genuine literal syntax for creating anonymous functions.
Previously we might have used a function constructor and assigned the result to an object. This is more simple and straightforward. It looks just like a normal function declaration, except that there is no name defined for the function.
Prev | Home | Next |
Function definition | Up | Function object |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |