ES2021 Innovations

  • November 11, 2021
  • Enes Çelik & Mehmet Fışkındal

In this blog post, we will examine the features that come with ES2021. ECMAScript (ES) is a branded scripting language specification, standardized by ECMA-262 and ISO/IEC 16262.

What is JavaScript?

JavaScript is a language created for dynamism and vitality in web pages. It can be run directly when loaded into the page by writing embedded in the html code or internally. Therefore, the codes can be run without the need for a compiler. JavaScript is quite different from other languages when we consider this information. It was written in 1995 by Brendan Eich, an employee of the Netscape company. JavaScript was originally named "LiveScript". However, since the Java language was very popular at that time, the new language, LiveScript, was seen as a "little brother" and took the name JavaScript.

3 Amazing Features of JavaScript

  • Ability to work with HTML/CSS.
  • One of the most well-known is that it comes by default in all browsers and works without any problems.
  • It allows you to do easy things more easily.

There is no other browser technology that can accommodate all of these features. That's why JavaScript is the most used browser technology and that's what makes it unique. JavaScript runs on the infrastructure of most browsers today. Although it was originally a language developed to work only in web browsers, it can work now in most places (such as client-side and native mobile applications). It has no equal due to its excellent compatibility with HTML and CSS. Although it was seen as a useless sub-language of the Java language at first, it is a very advanced programming language today and has nothing to do with Java other than its name similarity.

Logical or Assignment (||=)

As the people’s property of the company object is not null in the codes above, there will be no assignment process.

Will be an assignment because state is null.

Finally, to give an example; In other words, if the value is null or initial value such as 0 , ' ' , the assignment takes place. Babel output

Logical AND assignment (&&=)

The logical and assignment operator assigns only if x is true. Code with Babel output

Logical Nullish Assignment (??=)

Preliminary information priority is the left expression, if the 2nd priority is null, the other expression is checked.


The replace command normally performs multiple insertions for a single string. This problem can be solved with regex. But now there is the replaceAll function.

Numeric separators

Data types such as hex, bigint, decimal, binary integer can be kept as variables. Final state of the project