This course has been updated! We now recommend you take the JavaScript: From First Steps to Professional course.

Check out a free preview of the full JavaScript: From Fundamentals to Functional JS, v2 course:
The "Destructuring Challenge" Lesson is part of the full, JavaScript: From Fundamentals to Functional JS, v2 course featured in this preview video. Here's what you'd learn in this lesson:

In this challenge, students use destructuring to pull out two properties from an object.

Get Unlimited Access Now

Transcript from the "Destructuring Challenge" Lesson

[00:00:00]
>> Bianca Gandolfo: So we're gonna create an object that looks something like this, right? We have a name, a room, and a weapon. And we have a new character, Rusty. He sounds a little suspicious if you ask me. And we have room in the kitchen. So we're gonna extract out the weapon and location using the structuring techniques mentioned above.

[00:00:23] You can use whatever keyword for declaring your variables as you like.