Less than Required in function

It will return NAN as it don’t want to crash other running function.

Eg.

function sum(num1,num2){
		return num1 + num2;
}

console.log(sum(3)) // Output: NaN

More than Required in function

It will ignore other values which are not required.

Eg.

function sum(num1,num2){
		return num1 + num2;
}

console.log(sum(3,4,6,1,4)) // Output: 7