Mega Code Archive

 
Categories / JavaScript Tutorial / Function
 

Get function parameter length

< html> <head> <title>Try Catch Example</title> <script type="text/javascript"> function addTwoNumbers(a, b) {     alert(arguments.length); } var result = addTwoNumbers(90); </script> </head> <body> </body> </html>