Quiz on Function Arguments

Test your knowledge of function arguments.

1

Which of the following is the right way to pass the rest parameter?

A)
const max = function(...values, first, second) {
B)
const max = function(first, ...values, second) {
C)
const max = function(first, second, ...values) {
Question 1 of 40 attempted

Get hands-on with 1400+ tech skills courses.