Passing Arguments | JavaScriptSource

Passing Arguments

William Wen Aug 28, 2006
JavaScript functions have a special property called arguments, which contains an array of input parameters. Using the 'length' property of an array, you can iterate through the array for each parameter. This enables you to develop functions that can change as their parameters do.

The JavaScript Source: Snippets : Passing Arguments

Simply click inside the window below, use your cursor to highlight the script, and copy [Control]+C the script into a new file in your text editor (such as Note Pad) and save [Control+S]. The script is yours!!!


Did you use this script?  Do you like this site?  Please link to us!

Leave a Response

(
0 comments)