BABLE Transpiler
Babel is the most popular transpiler for javascript.This is an open source transpiler. Now a days ES6+ (ECMA Script) is the javascript version. Some browsers still can read old javascript versions only. Eg:- Internet Explorer. If we used latest version of javascript for the program that might not executable in those older version browsers.
In order to solve that this Babel transpiler convert Latest version javascript in to old javascript version,
Some companies use Babel
- Discord
- Yahoo
- GitLab
Conversion Example
- Arrow Function in to javascript function
//Latest Version
CalculateValues = (x,z) =>{
const sumIs = x+z;
return sumIs;
}
//After Transpiling
function CalculateValues(x,z){
var sumIs = x+z;
return sumIs;
}
Comments
Post a Comment