Lesson 22 of 35 · +100 xp

Destructuring

Pull out fields.

Explained simply

Your task

Declare const { name, age } = user;

destructure.js
▶ Output (javascript)
Click 'Run code' to execute your code in a real sandbox.
← Back