Post Cover

Introduction to Modern JavaScript ES6

June 19, 2020

ES6 or ECMAScript language specification defines the standard for implementing JavaScript. With that said, this is the first of a series going in depth of ES6, covering a wide variety of features and useful techniques that I use on a day to day basis as a Full-stack Developer.

What is ES6?

ECMAScript 2015 is the sixth edition of ECMAScript language. In order to run ES6 code in all browsers you’ll have to use a transpiler for JavaScript. There’s a lot of different JavaScript compilers out there but in this series I’m only going to cover BABEL. BABEL does like any other JavaScript compiler, converts the code into a backwards compatible version of Javascript allowing the script to run in any browser or older environments.

The reason for this is because not all browsers support the same code base. Older browsers might not support the new syntax ES6 offers so we use things like BABEL so you don’t have to wait. Pretty cool, huh? Now that’s out the way, time for the fun stuff…

What are the Benefits of Learning ES6

If you’re reading this then I’m hoping you have someone of an interest in learning modern JavaScript and if not, well hopefully by the end you will. To start, like most programming languages you will always have updates, changing syntax, new features and at times, complete rewrites of code. So, keeping up with the latest version is always recommended for the obvious reasons stated above.

However, if you’re looking for a pay increase or a better job, learning ES6 will be a great investment, opening up better opportunities and a possible raise from your current employer. Also, if you’re like me and love JavaScript then once you’re ready to learn newer modern frameworks like React or Vue then I find the learning curve comes a lot easier.

In Conclusion, I hope this sets the expectations for the series. Look out for my next post in this series where I’ll be covering the benefits of block scoping and showing a few examples to help get started.