Lesson 2. Transpiling with Babel

When new features are added to JavaScript, the browsers always have to play a game of catch-up. It takes time after an update to JavaScript’s specification before all modern browsers have everything fully implemented and supported. In order to use all of the features covered in this book, you’ll make use of the technique covered in this lesson: transpiling.

2.1. What is transpiling?

Transpile is a portmanteau of the words translate and compile. Compilers typically compile a written programming language into incomprehensible[1] machine code. A transpiler is a special kind of compiler that translates from the source code of one programming language to the source code of another.

1

To a human, anyway.

2.1.1. ...

Get Get Programming with JavaScript Next now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.