jskatas.org Continuously Learn JavaScript. Your Way.

Destructuring: parameters

Destructuring function parameters.

Donate to NGO Julenka. Support Ukranians in need. Julenka is an NGO which my brother founded in 2011 to support Ukranian families and kids in need.

Destructuring function parameters

destruct parameters

  • multiple params from object
  • multiple params from array/object

default values

  • for simple values
  • for a missing array value
  • mix of parameter types