Desmond  Gerber

Desmond Gerber


JavaScript ES2016 Features With Examples

In this series, we are going to show the EcmaScript features from 2015 to today.

  • ES2015 aka ES6
  • ES2016 aka ES7
  • ES2017 aka ES8
  • ES2018 aka ES9
  • ES2019 aka ES10
  • ES2020 aka ES11
  • ES2021 aka ES12


ES2016 aka ES7 is the version of ECMAScript corresponding to the year 2016. This version does not include as many new features as those that appeared in ES6 (2015). However, some useful features have been incorporated.

This article introduces the features provided by ES2016 in easy code examples. In this way, you can quickly understand the new features without the need for a complex explanation.

Of course, it is necessary to have a basic knowledge of JavaScript to fully understand the best ones introduced.

The new #JavaScript features in ES2016 are:

➡️ Array.prototype.includes

➡️️ Exponentiation operator


The includes() method determines whether an array includes a certain value among its entries, returning true or false as appropriate.

Array.prototype.includes return a Boolean which is true if the value valueToFind is found within the array.

#javascript #nodejs #node

JavaScript ES2016 Features With Examples