5 lines
128 B
JavaScript

function foo() {
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "foo";
var b = arguments[1];
}