Quiz Question 1 of 5
In the context of JavaScript functions, what is the primary difference between using the arguments
keyword and the rest parameter syntax (...)?
Choose the correct answer below:
-
A
The rest parameter syntax is only compatible with primitive data types, whereas
arguments
can handle objects and arrays. -
B
The
arguments
keyword includes all parameters passed to the function, while the rest parameter includes only the additional arguments beyond those explicitly declared. -
C
The rest parameter syntax cannot handle the first two arguments, unlike
arguments
. -
D
The
arguments
keyword is an Array-like object that must be converted to an array, whereas the rest parameter is already an array.