More Functions

Rest parameters

Spread operator

Named parameters

Testing arguments

Catching exceptions

Throwing exceptions


Exercises

  1. What's the difference between rest parameters and spread operator?
  2. What's the benefit of named parameters?
  3. Why do we want to test the arguments passed into functions?
  4. Why do we want to catch or throw some exceptions?