In this exercise, 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.
(flute)…- Let's go ahead and open up exercise three.…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.…But that response function is receiving an object.…So stick with me.…What you want is you want right here,…you want to do some object destructuring.…
Right here,…you want to do some object restructuring.…Exactly like I just did for you before.…
This course was created by Frontend Masters. It was originally released on 01/10/2017. We're pleased to host this training in our library.
- The arrow function
- Arrow function variations
- Closures and explicit blocks
- Default values
- Using the gather and spread operators
- Dumping variables
- Concise properties and methods
- Symbols, iterators, and generators
- Optimizing codes for the reader
Skill Level Intermediate
1. Arrow Functions
2. Block Scope
3. Default Values and the Gather/Spread Operators
5. Template Strings
6. Symbols, Iterators, and Generators
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.