ES6 Javascript

JavaScript has come a long ways in its 20 years of existence. It’s grown from a language used to define a few variables and functions to one that can be used to build robust applications on the client-side and server-side. Although it’s popularity continues to grow in large part due to its dynamic nature and ability to run anywhere, JavaScript as a language is still missing many key features that could help increase developer productivity and provide a more maintainable code base. Fortunately, ECMAScript 6 (ES6) adds many new features that will take the language to the next level. Topics include: What is ECMAScript? Transpiling ECMAScript with Babel and Babel-node Using the let and const keywords Creating strings with template strings Enhancing object literals Working with ES6 classes and class inheritance Arrow functions – A short-hand version of an anonymous function. Block-level scope – ES6 now supports scoping variables to blocks (if, for, while, etc.) using the let keyword. Classes – ES6 classes provide a way to encapsulate and extend code. Constants – You can now define constants in ES6 code using the const keyword. Default parameters – Ever wished that a function parameter could be assigned a default value? You can do that now in ES6. Destructuring – A succinct and flexible way to assign values from arrays or objects into variables. Generators – Specialized functions that create iterators using function* and the yield keyword. Map – Dictionary type object that can be used to store key/value pairs. Modules – Provides a modular way of organizing and loading code. Promises – Used with async operations. Rest parameters – Replaces the need for using arguments to access functions arguments. Allows you to get to an array representing “the rest of the parameters”. Set – A collection object that can be used to store a list of data values. Template Strings – Clean way to build up string values.

YouTube training Videos.