ES2022 features with simple examples

Hemil Patel
3 min readFeb 23, 2022
ES2022 features

In this article, we will examine the new features of JavaScript released in the ES2022 version. My approach would always be to give the most straightforward example to explain complex topics.

Why learn ES2022?

JavaScript is getting more features every year. The group, that creates ECMAScript specifications, keep us, the JavaScript developers busy. It makes us refactor our code regularly, making it easier to develop new platforms, update existing platforms, and keep us all employed. One thing is for sure, if you don’t keep learning, you become irrelevant within a short period. It’s an evolving industry that requires constant learning. Sometimes, I wish I was a doctor, yes they have to deal with new medicines and stuff, but people suddenly don’t develop a new type of liver, if you know what I mean :)

What’s in it?

I was bit surprised by the fact that the majority of features are related to classes. Considering that React, the most popular framework, decided to ditch classes and go with a functional way of doing things. On the other hand, classes in JavaScript needed a make-over. Compared to other object-oriented programming languages, JavaScript classes are missing lots of features. People who don’t use classes, don’t be disappointed; some other essential features are in ES2022 that you…

--

--

Hemil Patel
Hemil Patel

Written by Hemil Patel

I am a front-end programmer and I love JavaScript!

No responses yet