Under the hood, ES6 classes are not something that is radically new: They mainly provide more convenient syntax to create old-school constructor functions. That’s the main reason why everyone calls it as syntactic sugar. ES6 classes provide a clean and concise way to write object-oriented JavaScript. “Instantiating” a class in JavaScript does create a new … Continue reading “ES6 classes in javascript”
Tag: es6
Maps and Sets in javascript with example
Data structures in computer science refers to the programming storage of data for efficient usage in applications and algorithms. In the major release of javascript(ES6), four data structures were made available to the developers which really made javascript development further ease. They are Map, WeakMap, Set and WeakSet. Maps and WeakMaps Maps are nothing but … Continue reading “Maps and Sets in javascript with example”
ES6 new features – Part 2
Before diving into the core concepts like ‘Class’ and ‘Promises’ of ES6, let us see some minor changes which really helps in daily life coding. Destructuring Assignment Destructuring assignment on arrays allows for much more efficient array manipulation and assigns multiple variables from array data based on the index value.
1 2 3 4 5 | let arr = [10,20]; let [first,second] = arr; console.log(first,second); //Output //10,20 |
Destructuring assignment on objects … Continue reading “ES6 new features – Part 2”
ES6 New feature to begin with-Javascript
What is ES6?. It is short form of ECMA (European Computers Manufacturers Association) Script 6. ES6 is the 6th edition which was released in 2015. Please check the browser compatibility before using any of ES6 features. Let us concentrate on the aim of this post, which is to see what’s new in javascript and how … Continue reading “ES6 New feature to begin with-Javascript”