QuestenaÜben und erkennen, was als Nächstes dran ist
Frage 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 finalRichtige Antwort

Erklärung

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.

Mit diesem Test weitermachen

Übung starten
Frage 80: A function signature ends with ...rest. Which statement… · JavaScript Fundamentals · Questena