|
March 15, 2000 Variable-Length Argument List Tips: March 2000
Yehuda Shiran, Ph.D.
|
|
Suppose you want to create a function that accepts string arguments and prints them with a line break after each one. Since the number of arguments is not known, the only way to handle this situation is through the arguments array:
See more examples in Column 59, IE 5.5's New Operators.
People who read this tip also read these tips: Look for similar tips by subject: |