Search⌘ K
AI Features

Everything new in ES2016

Explore the new features introduced in ES2016, focusing on the Array.prototype.includes method for element searching and the exponential operator for cleaner mathematical operations. Understand their syntax, practical use cases, and how these updates simplify JavaScript coding patterns.

ES2016 introduced just only two new features:

  • Array.prototype.includes()
  • The exponential operator

 

Array.prototype.includes() #

The includes() method will return true if our array includes a certain element, or ...