QuestenaПрактика, после которой понятно, что повторить
Вопрос 80

A function signature ends with ...rest. Which statement about rest is accurate?

  1. It may be followed by any number of ordinary parameters
  2. It stores only the count of remaining arguments
  3. It always creates an Array containing one nested Array
  4. It gathers remaining argument values into an Array and must be finalПравильный ответ

Объяснение

A rest parameter must be the final parameter and gathers the remaining argument values into an Array. It does not wrap all remaining values into an extra nested array unless one of those values was itself an array argument.

Продолжить работу с тестом

Начать тренировку
Вопрос 80: A function signature ends with ...rest. Which statement… · JavaScript Fundamentals · Questena