The 5 most transformative JavaScript features from ES13

Tari Ibaba
Coding Beauty
Published in
4 min readJul 5, 2024

--

ES13 was packed with valuable features that completely transformed the way we write JavaScript.

From async upgrades to array sugar and more, let’s check them out and see the ones you missed.

1. Top-level await

Before ES13 we could never use await in the global scope.

❌ Before:

We always had to put it in an async function or create an async IIFE:

✅ After ES13:

2. Class declaration upgrades

1. Class field declarations

Before ES13 we could only declare class fields in the constructor:

Unlike in many other languages we could not declare or define them in the outermost scope of…

--

--

Tari Ibaba
Coding Beauty

I help you gain the coding knowledge and skills to build the life you love.