---
title: "Discussion on \"New JavaScript Features ECMAScript 2021 (with examples)\" | Hashnode"
description: "Discussion on \"New JavaScript Features ECMAScript 2021 (with examples)\". ECMAScript 2021 is the version of ECMAScript corresponding to this year. There are some useful and awesome features that have been incorporated and could be used in our javascript projects\nThe new JavaScript features in ECMAScript 2021 are:\n\nNumeric ..."
url: "https://hashnode.com/posts/new-javascript-features-ecmascript-2021-with-examples/6088709bc5901d3a8711571d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [New JavaScript Features ECMAScript 2021 (with examples)](https://brayanarrieta.hashnode.dev/new-javascript-features-ecmascript-2021-with-examples?utm_source=hashnode&utm_medium=feed)

ECMAScript 2021 is the version of ECMAScript corresponding to this year. There are some useful and awesome features that have been incorporated and could be used in our javascript projects The new JavaScript features in ECMAScript 2021 are: Numeric ...

May 5, 2021 · 5 min read · brayanarrieta.hashnode.dev  
Updated Apr 26, 2022  
Read the article

-   [#ecmascript](https://hashnode.com/tag/ecmascript)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)

## Written by

[Brayan Arrieta Alfaro](https://hashnode.com/@brayanarrieta)

@brayanarrieta · Costa Rica

  
[View profile](https://hashnode.com/@brayanarrieta)

Senior Software Engineer | Machine Learning Passionate | SAFe Scrum Master | AWS Enthusiastic

I'm a software engineer with capabilities for doing application design and software development with several technologies and frameworks. I’m a friendly, organized, responsible person, always focused on achieving the best results, I have clear goals and a great determination to overcome any obstacle that may arise. Always excited about learning and working with newer technologies and methodologies that allow me to create better software solutions and grow professionally.

## Responses 5

Markdown supported · ⌘↵ to post

[Kiril Delovski](https://hashnode.com/@kiril6)

[May 4, 2021](https://hashnode.com/posts/new-javascript-features-ecmascript-2021-with-examples/6088709bc5901d3a8711571d/comment/609153398c38d5300e68a490)

Test your javascript knowledge with this quick js quiz [js-quiz.delovski.net](https://js-quiz.delovski.net/)

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[Apr 29, 2021](https://hashnode.com/posts/new-javascript-features-ecmascript-2021-with-examples/6088709bc5901d3a8711571d/comment/608a512472387b583d14a340)

This is really a nice piece of information, I enjoyed reading it again this morning.

[Tapas Adhikary](https://hashnode.com/@atapas)

[Apr 29, 2021](https://hashnode.com/posts/new-javascript-features-ecmascript-2021-with-examples/6088709bc5901d3a8711571d/comment/608a4d081bb72c5818620c6e)

Thanks for sharing, Brayan. You have covered it nicely. Bookmarked.

[Lucas Giraldelli](https://hashnode.com/@lucas-giraldelli)

[Apr 28, 2021](https://hashnode.com/posts/new-javascript-features-ecmascript-2021-with-examples/6088709bc5901d3a8711571d/comment/608962321bb72c581861fd16)

I think the OR & Equals (||=) after example is wrong.

should be:

let a = 1; a ||= 3

// Output: a = 3

Or I am wrong?

[Olivier Pons](https://hashnode.com/@olivierpons)

[Apr 28, 2021](https://hashnode.com/posts/new-javascript-features-ecmascript-2021-with-examples/6088709bc5901d3a8711571d/comment/608962321bb72c581861fd16#reply-608969c81bb72c581861fd9b)

He wrote twice "a &&= 3" for "&&=" but also for "||=" ;)

[Brayan Arrieta Alfaro](https://hashnode.com/@brayanarrieta)

[Apr 28, 2021](https://hashnode.com/posts/new-javascript-features-ecmascript-2021-with-examples/6088709bc5901d3a8711571d/comment/608962321bb72c581861fd16#reply-608970b71bb72c581861fe3a)

Checking thx for that I will check and correct that

[Brayan Arrieta Alfaro](https://hashnode.com/@brayanarrieta)

[Apr 28, 2021](https://hashnode.com/posts/new-javascript-features-ecmascript-2021-with-examples/6088709bc5901d3a8711571d/comment/608962321bb72c581861fd16#reply-608972421bb72c581861fe56)

I changed to

let a = 0; a ||= 3

// Output: a = 3

Basically the conditional apply with falsy values, thx [Lucas Giraldelli](https://hashnode.com/@lucas-giraldelli) [Olivier Pons](https://hashnode.com/@olivierpons)
