1.

What is Babel?

Answer»

Babel is an open-source JAVASCRIPT transpiler that converts ECMAScript 2015+ (ES6+) code into a backwards compatible version of JavaScript that can be run by previous JavaScript engines. Babel is a popular tool for exploiting the JavaScript programming language's latest CAPABILITIES

Babel plugins are used to convert SYNTAX that isn't widely supported into a version that is backwards compatible. Arrow functions, for example, which are defined in ES6, are translated to ORDINARY function declarations. It's also possible to translate non-standard JavaScript syntax, such as JSX. Babel may automatically inject core-js polyfills for support capabilities that aren't available in JavaScript environments. Static methods like Array.from and built-ins like Promise, for example, are only accessible in ES6+, but they can be utilised in previous contexts by using core-js.



Discussion

No Comment Found