Showing posts from 2020

Modern JavaScript

Originally named as “LiveScript” but later launched as JavaScript, owing to the popularity of the technology at that time, it has become one of the most popular programming languages. JavaScript has been evolving over the last two decades. However, until 2015, JavaScript did not have too many enhancements. The JavaScript version most developers are familiar with - ES5) - was published in 2009. Over the last few years, JavaScript has evolved rapidly and the version that we are using has become an old-school version (most of the developers call it “The Dark Ages” of the JS!). So let’s get up to the speed quickly and learn some cool new features of ECMAScript 2015+ also popularly known as ES6+. let In the old-school, we were using ‘var’ to declare a variable. That has a huge loophole in the architecture and its behavior. Sometimes it becomes a bottleneck for the developers because ‘var’ does not support block scope. To understand the block scope, see the following piece of scr