All you know that arguments is a special object that holds all the arguments passed to the function.
arguments
And as long as it is not an array - you cannot use
You can use ...rest within the function to separate the first and the rest of the arguments:
function foo(arr) { const [first, ...rest] = arguments; console.log(`first = ${first}`); console.log(`rest = ${rest}`); } //Then calling the function with 3 arguments: foo(1,2,3)