In C language, the declaration of a function may also include a function prototype. This defines the calling interface to the function so that the compiler can give warning about any function calls that do not conform to the prototype.
JavaScript does not support this function prototyping because it is not a strongly typed language and the scripts are not compiled before execution. Do not confuse function prototype calling interface specifications with the JavaScript Function.prototype object, which is part of the inheritance mechanism.
See also: | const, Function call, function( ... ) ... |
Prev | Home | Next |
Function property | Up | Function scope |
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. |