Introduction to the ES6

ECMAScript is a standardized version of JavaScript with the goal of unifying the language's specifications and features. As all major browsers and JavaScript-runtimes follow this specification, the term ECMAScript is interchangeable with the term JavaScript.

The ECMAScript 5 (ES5) specification of the language, finalized in 2009. But JavaScript is an evolving programming language. As features are added and revisions are made, new versions of the language are released for use by developers.

The most recent standardized version is called ECMAScript 6 (ES6), released in 2015. This new version of the language adds some powerful features that will be covered in this section of challenges, including:

  • Arrow functions
  • Classes
  • Modules
  • Promises
  • Generators
  • let and const


Note
Not all browsers support ES6 features. If you use ES6 in your own projects, you may need to use a program (transpiler) to convert your ES6 code into ES5 until browsers support ES6.


ES6 :1 Explore Differences Between the var and let Keywords

ES6 :2 Compare Scopes of the var and let Keywords

ES6 :3 Declare a Read-Only Variable with the const Keyword

ES6: 4 Mutate an Array Declared with const

ES6: 5 Prevent Object Mutation

ES6: 6 Use Arrow Functions to Write Concise Anonymous Functions

 ES6: 7 Write Arrow Functions with Parameters

ES6: 8 Write Higher Order Arrow Functions

ES6: 9 Set Default Parameters for Your Functions

ES6:10 Use the Rest Operator with Function Parameters

ES6: 11 Use the Spread Operator to Evaluate Arrays In-Place

ES6: 12 Use De-structuring Assignment to Assign Variables from Objects

ES6:13 Use Destructuring Assignment to Assign Variables from Nested Objects

ES6: 14 Use Destructuring Assignment to Assign Variables from Arrays

ES6: 15 Use Destructuring Assignment with the Rest Operator to Reassign Array Elements

ES6: 16 Use Destructuring Assignment to Pass an Object as a Function's Parameters

ES6: 17 Create Strings using Template Literals

ES6:18 Write Concise Object Literal Declarations Using Simple Fields

ES6: 19 Write Concise Declarative Functions with ES6

ES6: 20 Use class Syntax to Define a Constructor Function

 

Comments

Popular posts from this blog

ES6 : 5 Prevent Object Mutation

ES6: 1 Explore Differences Between the var and let Keywords

CSS Grid: Reduce Repetition Using the repeat Function