Question: What pattern is being used in this code?

  1. function defaults
  2. array destructuring
  3. PRPL pattern
  4. destructuring assignment

Answer: The correct answer of the above question is Option D:destructuring assignment