- Let's set this up real simply.…Let's imagine we have a function…called foo that returns us something…and I'm going to start easy,…I'm going to start with an array.…Let's say it returns us an array like one, two, three.…And then we want to consume that value…in some other part of our program.…So, we're going to call foo…and what we're going to get back is an array…which is great, we can say…var…array…and get back that array but what if,…in that part of our code,…we need to individually reference different values?…We don't want to say A-R-R of zero, A-R-R of one.…
What if we want lexical names to reference them?…Like, for example, a, b and c.…Okay?…So, what you might be in the habit of doing…is something like assigning this the temp variable…and then creating…individual assignments.…Whether you knew it or not, this practice…has a, sort of, general category name…and that practice is de-structuring…and that term, that idea of manual de-structuring,…the way to think about what that means…is to take a structure, like an object or an array,…
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.