To get function parameter length in JavaScript

function addTwoNumbers(a, b) {
    alert(arguments.length);
}

var result = addTwoNumbers(90);