Kyle spends a few minutes showing babeljs.io, which is an online tool that uses Babel to convert ES6 code into compliant ES5 syntax. While the command line version is better for development, the online tool is useful for understanding how ES6 code would be written in ES5.
(pan flute music)…- I just want to take a brief moment to mention…the landscape of ES6 is complicated…in a sense by the fact that that syntax…is not necessarily directly supported…in every single browser that you may have to support.…Now, the good news is, ES6 has been around for a while.…It was being prototyped in browsers all along…during the spec process, so many of the browsers…that you support already support most,…if not all, of ES6.…
Certainly most of what we're covering today.…There are obviously a few corner niche cases and things…but if you have to support mobile…or if you have to support older browsers,…an IE11, or Safari 5, or something like that,…if you have to support those sorts of browsers,…the new syntax we're talking about,…like a ... operator, or arrow function…or whatever, it's not going to work…and there's no real way to gracefully handle that, per se.…The typical strategy, which most of you…have probably heard of, but the typical strategy…is what we call transpiling, which is to take the ES6 code…
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.