---
title: "4 Best New JavaScript ES2022 Features"
url: https://daily.dev/posts/4-best-new-javascript-es2022-features-tkudgaame
source_url: https://javascript.plainenglish.io/4-best-new-es2022-features-6e73db339b21?source=rss----4b3a1ed4f11c---4
type: article
source: "JavaScript in Plain English"
published: 2022-07-05T02:57:00.359Z
updated: 2022-07-05T02:56:59.346Z
tags: ["general-programming", "javascript"]
reading_time: 2
upvotes: 135
comments: 7
language: 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.

# 4 Best New JavaScript ES2022 Features

**[JavaScript in Plain English](https://daily.dev/sources/jsPlainEnglish)** · 2 min read · 135 upvotes · 7 comments

## Summary

The await keyword previously couldn’t be used outside the async box (or function) With ES2022, we can use await without async, for example, to load other code conditionally or dynamically. ‘.at()’ method for arrays will help you get what you want in a line of code.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://javascript.plainenglish.io/4-best-new-es2022-features-6e73db339b21?source=rss----4b3a1ed4f11c---4>

## Community discussion

Top comments from developers on daily.dev.

**@nickytonline** · 2 upvotes

> top level await ftw!

**@leandromartinmacato** · 0 upvotes

> Lookin forward to this !

**@poisepaul** · 0 upvotes

> Learned the new ES2022 Features

**@vinodk** · 0 upvotes

> nice features

**@itsmnthn** · 0 upvotes

> Good point outs. I like that these features are natively  implemented. Cheers for the next post.

## 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 · 0 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

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/4-best-new-javascript-es2022-features-tkudgaame)
