Javascript: Get function arguments dynamically

Sometimes its handy (during debugging) to see what arguments are being passed to the function.

Within the local scope of the function, the special variable "arguments" will contain the information you need.

Use "arguments.length" to determine how many there are.

[ Source ]

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog