Learn the latest features in JavaScript with Kyle Simpson, author of the popular, You Don't Know JS, book series. You'll get up to speed with new JavaScript features like tagged template literals, destructuring, iterators, generators, regex improvements and async await.
This course and others like it are available as part of our Frontend Masters video subscription.Table of Contents
Introduction
-
JavaScript New Feature Process
Kyle Simpson begins by giving context to the frustration with the fast pace of JavaScript's evolution by talking about the dark ages of JavaScript, and explaining how the language has gotten to the present day feature process.
-
Declarative JavaScript
Kyle explains why the changes that are coming to JavaScript make the language more declarative.
-
Browser Support & Transpilers
Kyle assuages developer's fears of not supporting their users when new features are implemented by introducing transpilers as a standard for the language.
-
Course Overview
Kyle defines what the "recent parts" means as part of the title, and gives a roadmap for what the course will contain.
Get frontendmasters – JavaScript: The Recent Parts (2019) – Kyle Simpson, Only Price $62
Strings
-
Template Strings
Kyle introduces a more declarative way of introducing variables to strings than the default string concatenation.
-
Tagged Templates
Kyle introduces tagged literals, gives a simple example of when they could be useful, and describes where to find prewritten libraries to help in your code.
-
Applying Tagged Templates
Kyle demonstrates an application for tagged literals that logs objects in the console.
-
Tagged Template Exercise
Students are instructed to utilize both template strings, and tagged templates in a statement that is logged in the console.
-
Tagged Template Solution
Kyle live codes the solution to the exercise.
-
Padding & Trimming
Kyle introduces string padding, and string trimming.
Array Destructuring
-
Destructuring
Kyle breaks down destructuring, and gives a tangable example of how it makes the code more declarative.
-
Refactoring Code Using Destructuring
Kyle demonstrates how to implement the previous conversation about destructuring.
-
Spread Operator & Declaring Destructured Arrays
Kyle introduces the spread operator to the example, and then goes on to explain how the example without destructuring differs in behavior to the example with destructuring.
-
Declaration & Assignment
Kyle defined the difference between declaration and assignment, and explains both in the context of destructuring.
-
Comma Separation
Kyle demonstrates how to use commas to omit a value that is returned when destructuring.
-
Parameter Arrays
Kyle demonstrates how to apply destructuring when the function signature contains an array, and applies the concept of gracefully falling back when what was returned is null.
-
Nested Array Destructuring
Kyle demonstrates how to to access a returned data structure's values when it is known that there are nested arrays.
Object Destructuring
-
Object Destructuring
Kyle demonstrates how to assign default parameters, and utilize the spread operator.
-
Object Assignment Destructuring
Kyle explains how JavaScript distiguishes blocks from destructuring when assignment is separate from declaration.
-
Object Default Assignment
Kyle demonstrates how to ensure object destructuring falls back gracefully when the values are null.
-
Nested Object Destructuring
Kyle demonstrates how to access a returned data structure's values when it is known that there are objects.
-
Default Assignment Q&A
A question is asked about the proper way to give a default assignment.
-
Parameter Objects
Kyle demonstrates how to apply destructuring when the function signature contains an object.
-
Nested Object & Array Destructuring
Kyle demonstrates how to access a returned data structure's values when it is known that there are both objects and arrrays.
Get frontendmasters – JavaScript: The Recent Parts (2019) – Kyle Simpson, Only Price $62
Further Destructuring
-
Named Arguments
Kyle demonstrates a method of improving the readability of code by naming arguments.
-
Destructuring & Restructuring
Kyle introduces a method to mix methods at a call site.
-
Destructuring Exercise
Students are instructed to destructure an AJAX response, then restructure the parameters.
-
Destructuring Solution
Kyle live codes the solution to the exercise.
Array Methods
-
find, findIndex, & includes
Kyle introduces new array methods .find, findIndex, and .includes that search an array.
-
flat & flatMap
Kyle introduces new array methods .flat and .flatmap that augment nested arrays.
Iterators & Generators
-
Iterators
Kyle defines what an iterator is, and walks through an example where an iterator is instantialized, and an iterator result is produced.
-
Declarative Iterators
Kyle introduces the new built in key word "of" and spread operator as declarative methods to iterate over data structures.
-
Data Structure without Iterators
Kyle discusses the issues that arise when attempting to iterate over data structures such as an object, and demonstrates a strategy for overcoming this.
-
Generators
Kyle demonstrates how to use generators to iterate over data structures without iterable attributes.
-
Iterator & Generator Exercise
Students are instructed to implement an iterator and generator to log lucky numbers.
-
Iterator & Generator Solution
Kyle live codes the solution to the exercise.
Regular Expressions
-
Look Ahead & Behind
Kyle first reviews look aheads, then introduces the brand-new implementation of look behinds.
-
Named Capture Groups
Kyle introduces a method to organize regular expressions and make them more human readable.
-
dotall Mode
Kyle demonstrates how to utilize the dotall mode to select elements of a string.
-
Regex Exercise
Students are instructed to utilize all three of the features learned in the last few sections, as well as earlier lessons to log selected portions of a poem provided by Kyle.
-
Regex Solution
Kyle live codes the solution to the exercise.
Async Await
-
Async Functions
Kyle gives context to what was done previous to the availability of the sync-async pattern, then goes on to explain how the async function accomplishes essentially what the async function accomplished.
-
Async Await Exercise
Students are instructed to construct an async function where files are given to the function by a mock AJAX call, and are logged in the order that they are received.
-
Async Await Solution
Kyle live codes the solution to the exercise, and demonstrates a common mistake that students are likely to make.
-
Async Iteration
Kyle goes into further detail on why await cannot be used in a regular function, and offers up a library that fills the gap in the language.
-
Async Function Problems
Kyle exposes the issues with async functions, including that it only accepts true promises, and a scheduling issue that causes starvation.
-
Async Generators with yield
Kyle introduces a new function type as of ES2018 that allows for yield and await in the same function.
-
Async Generators Iteration
Kyle explains why async generators are the last piece in the quadrant of async generators.
Wrap-Up
Wrap-Up
Kyle explains why the audience should be encouraged by the future of JavaScript
Get frontendmasters – JavaScript: The Recent Parts (2019) – Kyle Simpson, Only Price $62
Tag: frontendmasters – JavaScript: The Recent Parts (2019) – Kyle Simpson Review. frontendmasters – JavaScript: The Recent Parts (2019) – Kyle Simpson download. frontendmasters – JavaScript: The Recent Parts (2019) – Kyle Simpson discount.
Reviews
There are no reviews yet.