Babel

Babel is a JavaScript compiler.

Use next generation JavaScript, today.

Babel是一个工具链,主要用于在旧的浏览器或环境中将ECMAScript 2015+代码转换为向后兼容的JavaScript版本。

简单的例子

ES6 语法:

let yourTurn = "Type some code in here!";

实际输出:

var yourTurn = "Type some code in here!";