Overview and Need for Babel
JavaScript is improving with time and introducing new features, but not all browser update their engines as per ECMA guidelines updates. And even if most of the popular browser even do, then not all of the users use the updated browser, that restricts the programmers to use an older version of JavaScript so that older browsers to support the functionality they are writing.
This is a very common problem with CSS3 too. But thanks to babel. Babel transpile (compiling from JS to JS) the latest JavaScript features into older versions so that programmers don't need to worry about old browser compatibility. Babel is a powerful library to use the latest JavaScript features into your applications and compiled them to make old browser compatible. They are being used by almost all the front end libraries.
You can check out their official website or you can check out their source code at GitHub.