<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/new-javascript-features-ecmascript-2021-with-examples--dobujqrhx" -->

---
title: New JavaScript Features ECMAScript 2021 (with examples)
description: ECMAScript 2021 is the version of ECMAScript corresponding to this year. There are some useful and awesome features that have been incorporated. The new...
canonical: https://daily.dev/posts/new-javascript-features-ecmascript-2021-with-examples--dobujqrhx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: New JavaScript Features ECMAScript 2021 (with examples) | daily.dev
og:description: ECMAScript 2021 is the version of ECMAScript corresponding to this year. There are some useful and awesome features that have been incorporated. The new...
og:url: https://daily.dev/posts/new-javascript-features-ecmascript-2021-with-examples--dobujqrhx
og:image: https://api.daily.dev/og/posts/DobUjqrHX.png
og:image:alt: New JavaScript Features ECMAScript 2021 (with examples)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# New JavaScript Features ECMAScript 2021 (with examples)

**[Hashnode](https://daily.dev/sources/hashnode)** · 4 min read · 94 upvotes · 4 comments

## Summary

ECMAScript 2021 is the version of ECMAScript corresponding to this year. There are some useful and awesome features that have been incorporated. The new feature allows that numeric literals use underscores as separators to help to improve readability using a visual separation between groups of digits. The Promise.any() method returns a promise that will resolve as soon as one of the promises is resolved.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://brayanarrieta.hashnode.dev/new-javascript-features-ecmascript-2021-with-examples>

## Community discussion

Top comments from developers on daily.dev.

**@nogueiralucas** · 0 upvotes

> great post!

**@varun\_baisane** · 0 upvotes

> very helpful to stay update.

**@mathad** · 0 upvotes

> Nice post

**@yardan\_dev** · 0 upvotes

> I think it become powerfull language

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/new-javascript-features-ecmascript-2021-with-examples--dobujqrhx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"New JavaScript Features ECMAScript 2021 (with examples)","url":"https://daily.dev/posts/new-javascript-features-ecmascript-2021-with-examples--dobujqrhx","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/new-javascript-features-ecmascript-2021-with-examples--dobujqrhx"},"datePublished":"2021-04-28T06:04:09.018Z","dateModified":"2021-10-07T14:17:10.317Z","description":"ECMAScript 2021 is the version of ECMAScript corresponding to this year. There are some useful and awesome features that have been incorporated. The new...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a7484ccd58dbf854d04dab6acc8c7c32","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a7484ccd58dbf854d04dab6acc8c7c32","isAccessibleForFree":true,"articleSection":"Hashnode","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hashnode","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/4a287b2e7cb5499bae863f8e7137cdb4","url":"https://daily.dev/sources/hashnode"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/new-javascript-features-ecmascript-2021-with-examples--dobujqrhx","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":94},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"javascript","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hashnode","item":"https://daily.dev/sources/hashnode"},{"@type":"ListItem","position":3,"name":"New JavaScript Features ECMAScript 2021 (with examples)"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/new-javascript-features-ecmascript-2021-with-examples--dobujqrhx","comment":[{"@type":"Comment","text":"great post!","datePublished":"2021-04-28T17:16:33.696Z","url":"https://daily.dev/posts/DobUjqrHX#c-FtCDAXWp1","author":{"@type":"Person","name":"Lucas Nogueira","url":"https://daily.dev/nogueiralucas","image":"https://avatars1.githubusercontent.com/u/20306466?v=4"}},{"@type":"Comment","text":"very helpful to stay update.","datePublished":"2021-04-28T08:53:00.300Z","url":"https://daily.dev/posts/DobUjqrHX#c-efCqHHPQG","author":{"@type":"Person","name":"Varun Baisane","url":"https://daily.dev/varun_baisane"}},{"@type":"Comment","text":"Nice post","datePublished":"2021-04-28T13:35:15.860Z","url":"https://daily.dev/posts/DobUjqrHX#c-SL97TNYIH","author":{"@type":"Person","name":"mathad","url":"https://daily.dev/mathad","image":"https://avatars0.githubusercontent.com/u/60254267?v=4"}},{"@type":"Comment","text":"I think it become powerfull language","datePublished":"2021-05-01T09:04:29.014Z","url":"https://daily.dev/posts/DobUjqrHX#c-VQYFQkaRt","author":{"@type":"Person","name":"Yardan","url":"https://daily.dev/yardan_dev","image":"https://media.daily.dev/image/upload/s--dIg5y8u1--/f_auto/v1708564305/avatars/avatar_pIwYvORdp"}}]}
```

