This course has been updated! We now recommend you take the JavaScript: The Recent Parts course.

Check out a free preview of the full ES6: The Right Parts course:
The "Exercise 3" Lesson is part of the full, ES6: The Right Parts course featured in this preview video. Here's what you'd learn in this lesson:

In this exercise, you will use object destructuring to populate the parameters of the response function and restructure those variables in the call to the check function. The code for this exercise is located in the ex3.js file.

Get Unlimited Access Now

Transcript from the "Exercise 3" Lesson

>> [MUSIC]

>> Speaker 1: Let's go ahead and open up Exercise 3. We sort of have almost the same thing, except in this case there's a little bit of foo barring going on. But we have almost the same thing going on. So let me orient you, what we have is a check function that's gonna pass in an object.

[00:00:21] But that response function is receiving an object. Okay, so stick with me. What you want is you want right here. You want to do some object destructuring. And right here, you want to do some object restructuring, exactly like I just did for you before.