Nigel  Uys

Nigel Uys

1614910140

5 Interesting Features JavaScript ES2021 (ES12)

The ES2021 (ES12) will be released in the middle of 2021. In this tutorial, you will learn about the five most interesting features from this specification: String.prototype.replaceAll(), numeric separators, logical assignment operators, Promise.any(), WeakRef and Finalizers.

A quick note about the features

All five features you will read about in this article are currently at stage 4. What this means is that they are finished and ready to be implemented by JavaScript engines. This also means that you don’t have to worry you will be wasting your time learning something that will never see the daylight. You will not.

All these features will be shipped, soon. If you are interested, you can learn more about other proposals in official Ecma TC39 GitHub repository. This repository keeps track of all proposal and also of stages each proposal is currently at. Now, let’s take a look at what interesting features the ES2021 specification will bring.

  • String.prototype.replaceAll()
  • Numeric separators
  • Logical assignment operators
  • Promise.any()
  • WeakRef

#javascript #development #language #programming #programming language #technology #theory #web #web design #web development

5 Interesting Features JavaScript ES2021 (ES12)