article

Overview of JavaScript ES6 features

[WHAT]

  1. [] by adrian mejia @ adrianmejia.com - adrians lists the newest features in this version of JavaScript. Explains each feature and provides examples of usage of the new features in comparison to similar features in ES5.

[WHY]

  1. [] article lists the new features in the JavaScript es6,
  2. [] provides examples of how to implement each feature,
  3. [] provides comparison to implementing the same functionality in es5

[WHERE]

  1. [] READ THE FULL ARTICLE
    1. [] Overview of JavaScript ES6 features 

[WHEN]

  1. [] 2016-11-04
  2. [] 2019-11-23 - updated,

[EXAMPLE]

  1. [] block scope variables
    1. [] let
    2. [] const
  2. [] template litereals
    1. [] str = `the text and ${someVariable}`
    2. [] note the backticks vs the double quotes used when declaring a string
  3. [] multi - line strings
    1. []
  4. [] destructuring assignment
    1. [] const array = [0,1,2,3]
    2. [] const arraySubset[first, third] = array // results in [0,2] 
  5. [] classes and objects
    1. []  class Animal()
    2. []    constructor(name){}
  6. [] inheritance
    1. [] new keyword extends -
    2. [] new keyword super -
  7. [] promises
    1. [] We went from callback hell ???? to promises ????
  8. [] arrow functions
    1. []
  9. [] For...of
    1. [] ranges - use - for (const element of array) { doSomethingWithElm() } // VS forEach with method
  10. [] default parameters
    1. []
  11. [] rest parameters
    1. []
  12. [] spread operator
    1. []

[HOW-TO]

  1. ]

[REFERENCE]

  1. [x] # 6537 - CREATE-article# 5388 - overview of JavaScript ES6 features 
  2. [x] > td] SRC=best-of-hn 2016-10-24(#)/comments(#)

 

Details Photos Edit more

Details

ID: 5388

NAME: overview-of-javascript-ES6-features

DESCRIPTION: [SUMMARY] ] by adrian mejia @ adrianmejia.com - adrians lists the newest features in this version of JavaScript. Explains each feature and provides examples of usage of the new features in comparison to similar features in ES5.

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Write

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and