How best to determine if an argument is not sent to the JavaScript function
I have now seen 2 methods for determining if an argument has been passed to a JavaScript function. I’m wondering if one method is better than the other or if one is just bad to use? function Test(argument1, argument2) { if (Test.arguments.length == 1) argument2 = ‘blah’; alert(argument2); } Test(‘test’); Or function Test(argument1, argument2) { … Read more