bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
Learn/JavaScript/Debugging, Projects, and Reference
JavaScript•Debugging, Projects, and Reference

ECMAScript 2016

New Features in JavaScript 2016

Supported in all modern browsers since March 2017 .

FeatureDescription
**Raises the first operand to the power of the second
**=Raises the value of a variable to the power of the right operand
Array includes()Checks if an element is present in an array

Browser Support

JavaScript 2016 is supported in all modern browsers since March 2017 :

Chrome 52Edge 15Firefox 52Safari 10.1Opera 39
Jul 2016Apr 2017Mar 2017May 2017Aug 2016

ES 2016 is not supported in Internet Explorer.

Exponentiation Operator

The exponentiation operator ( ** ) raises the first operand to the power of the second operand.

Example

let x = 5;
let z = x ** 2;

x ** y produces the same result as Math.pow(x, y) :

Example

let x = 5;
let z = Math.pow(x,2);

Exponentiation Assignment

Example

let x = 5;
x **= 2;

JavaScript Array includes()

ECMAScript 2016 introduced Array.includes to arrays.

This allows us to check if an element is present in an array:

Example

const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.includes("Mango");

Previous

ECMAScript 2017

Next

Javascript 2015 (ES6)

This chapter

Overview
32

Lessons

180m

Read time

1. JavaScript Errors2. JavaScript Debugging3. JavaScript Statements4. Project - localStorage Counter5. ECMAScript 20266. JavaScript Silent Errors7. JavaScript Debugging Console8. JavaScript Reserved Words9. Project - Event Listener10. ECMAScript 202511. JavaScript Error Statements12. JavaScript Debugging Breakpoints13. JavaScript Operator Precedence14. Project - To-Do List15. ECMAScript 202416. JavaScript Debugging Errors17. Project - Modal Popup18. ECMAScript 202319. JavaScript Debugging Async20. Project - Form Validation21. ECMAScript 202222. ECMAScript 202123. ECMAScript 202024. ECMAScript 201925. ECMAScript 201826. ECMAScript 201727. ECMAScript 201628. Javascript 2015 (ES6)29. JavaScript 2009 (ES5)30. JavaScript 1999 (ES3)31. JavaScript Versions32. JavaScript History

On this page

New Features in JavaScript 2016Browser SupportExponentiation OperatorExponentiation AssignmentJavaScript Array includes()