Showing posts with label JavaScript. Show all posts
Showing posts with label JavaScript. Show all posts

Tuesday, 27 October 2020

Javascript: Harmony, ES6, ES2015, ECMAScript

 ES6 or ECMAScript is the standardization of Javascript which was released in 2015, ES6 added lots of new feature and syntax in javascript. Let see a couple of new features or syntax changes with examples -


Javascript ES6 - Destructuring Assignment

 ES6 provides a new way to extract values from an array or object.  Let's see some examples of destructuring -

Monday, 26 October 2020

Javascript ES6 - Template Literals

Template Literals are used to concatenate two strings and it can contain placeholders for javascript variables. Placeholder syntax for javascript - ${expression}

Friday, 23 October 2020

JavaScript: let and const and temporal dead zone (TDZ)

JavaScript: let and const


let and const is used to declare a variable in javascript. Before let and const we had the only var to declare javascript variable. So what's different between var and let and cont. let's see with some examples -