Member-only story
Learn js with babeljs

Babeljs
Babel is a free and open-source JavaScript transcompiler that is mainly used to convert ECMAScript 2015+ (ES6+) code into a backward-compatible version of JavaScript that can be run by older JavaScript engines.
Babel is a popular tool for using the newest features of the JavaScript programming language in the older browsers having said that large enterprise companies like Facebook, Netflix, Spotify, NPM, etc are using Babel.
An Australian developer named Sebastian McKenzie started BabelJS.
To know more about Babel click here.
Arrow functions
According to MDN an arrow function expression is a syntactically compact alternative to a regular function expression. Let’s understand the concept with some examples.
Arrow functions were introduced in ES6.
The left part is the arrow function and the right part is the regular function generated by babeljs.

while using an arrow function we are not returning anything but still, we are getting the answer. In arrow function, if we wrap the JSON in round braces (which is after the…