Member-only story

Learn js with babeljs

Phanendra Guptha Katta
4 min readMay 17, 2020

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…

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Phanendra Guptha Katta
Phanendra Guptha Katta

No responses yet

Write a response