


It used to create immutable variables.Įnter fullscreen mode Exit fullscreen mode variables that are not meant to change through the program. The use of const and let, instead of var.Ĭonst is used to declare constants i.e.You must have come across or used some of the following syntaxes in your code: While the definition may seem bookish, ES6 and beyond come with lots of cool features from which I'll mention just a few. It is a JavaScript standard meant to ensure the interoperability of Web pages across different Web browsers. Wait a minute! What is ES6 (ECMAScript 2015) ?ĮCMAScript is based on several originating technologies, the most well-known being JavaScript (Netscape) and JScript (Microsoft). I found out I could actually do more with lesser code by writing my code in ES6 and beyond.

I had built some Nodejs API using the ES5, and everything works perfectly well, but I wasn't satisfied as I was unable to make use of some syntaxes which are somehow cool to me whenever I go through javascript code online. Trust me, you will be amazed by the end of this post. In this article, I'll be taking you through the process of building and testing a basic API using ES6. Just like me, you must have attempted to build your Nodejs application using ES6 and beyond.
