Question #33

Author: admin
tags: JavaScript  
function someFunc(a, b, c, ...rest) {
  const length = 6;

  console.log('You have '+ rest.length + ' extra parameters');

  return a + b + c;
}

someFunc(11, 12, 13, 14, 15, 16, 17, 18);

console.log(someFunc.length); // ??
What will the second console.log output in the line console.log(someFunc.length);?
3
4
5
6
undefined
There will be an error
The length property of any function contains the number of parameters expected by the function.
The rest syntax parameter does not affect this number.
Rate the difficulty of the question:
easyhard