Level 1M5Lesson 5.3

beginner40 minby DevFox

Optional, default, and rest parameters

Let a call leave an argument out with an optional parameter and check it before use, give a parameter a default value that fills in when nothing comes, and take any number of arguments as one list with a rest parameter. See a call fill each box, learn the order parameters go in, and what TypeScript says when a call brings too few, too many, or the wrong order.

  • Fundamentals
  • TypeScript
Optional, default, and rest parameters. Read this lesson at .