Click in order · JavaScript and TypeScript course · Module 2: Functions, Arrays and Objects

Nested Destructuring - Syntax

Arrange the elements of nested destructuring: const { vitals: { heartRate } } = report

Items to click

  • } = report
  • { heartRate }
  • const
  • { vitals:
Show the answer

Correct order:

  1. const
  2. { vitals:
  3. { heartRate }
  4. } = report